-
Notifications
You must be signed in to change notification settings - Fork 48
use useSyncExternalStore for useLiveQuery #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@tanstack/db-example-react-todo
commit: |
Size Change: +42 B (+0.14%) Total Size: 30 kB
ℹ️ View Unchanged
|
2fb3fa9
to
5e53026
Compare
Size Change: 0 B Total Size: 661 B ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely!
const snapshotRef = useRef<{ | ||
state: Map<any, any> | ||
data: Array<any> | ||
collection: Collection<any, any, any> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we still infer the collection types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they are inferred in the function overloads, this is just internal and the type declaration was redundant.
No description provided.