Skip to content

createPolled memo()[1] is undefined #808

@create-signal

Description

@create-signal

Describe the bug

We're encountering a problem while using the solid-primitives/date -> createDateNow method.

Internally it uses the createPolled method from solid-primitives/timer, which is throwing the error

memo()[1] is not a function. (In 'memo()[1](fn)', 'memo()[1]' is undefined)

This issue is only happening for a small subset of users in production. Unfortunately I can't reproduce it in development or stackblitz, and I can't spot any particular trend based on browser or device etc.

Looking at the source, I can't think of any reason why that setter would be undefined, but maybe a maintainer would have a better idea?

We're using the following versions:
@solidjs/start @1.1.7
solid-js @1.9.5
solid-primitives/date @2.1.1

Minimal Reproduction Link

https://stackblitz.com/edit/github-9zo4dpy1?file=src%2FApp.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions