Skip to content

[2.0] Error when using a bigint as a key #2802

@nicolo-ribaudo

Description

@nicolo-ribaudo

When using a bigint as a key for a component, I get this error:

TypeError: key.replaceAll is not a function
    at normalizeKey (https://jsr.io/@fresh/core/2.0.0-alpha.27/src/runtime/server/preact_hooks.tsx:172:14)
    at options.__b (https://jsr.io/@fresh/core/2.0.0-alpha.27/src/runtime/server/preact_hooks.tsx:207:25)
    at c.__b (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/preact/10.25.4/hooks/dist/hooks.mjs:1:2197)
    at e.__b (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/preact/10.25.4/compat/dist/compat.mjs:1:1629)
    at file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/@preact/signals/1.3.1/dist/signals.mjs:1:1155
    at U (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/preact-render-to-string/6.5.12/dist/index.mjs:1:5067)
    at U (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/preact-render-to-string/6.5.12/dist/index.mjs:1:4876)
    at U (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/preact-render-to-string/6.5.12/dist/index.mjs:1:7997)
    at U (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/preact-render-to-string/6.5.12/dist/index.mjs:1:4876)
    at U (file:///Users/nic/Library/Caches/deno/npm/registry.npmjs.org/preact-render-to-string/6.5.12/dist/index.mjs:1:7997)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions