Skip to content

useLiveQuery isn't working properly with React Compiler #391

@pawelblaszczyk5

Description

@pawelblaszczyk5

Hello!

I'm playing with TanStack DB - awesome job, really excellent experience. Happy to test the early release and report some issues I stumbled upon.

Currently useLiveQuery isn't working properly with React Compiler enabled - it's not always updating correctly, especially when updating queries, mounting or optimistic mutations. When looked into the source code it seems like parts of useLiveQuery code breaks rules of React.

Is this something that's on your radar, or React Compiler compatibility isn't guaranteed? Thanks a lot in advance!

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