useLiveQuery optimization: collection or collection options?
Say I just want a simple view on my Tanstack Query Collection (which in on itself is a dependent query). Is it better to create the collection first, memoize it, and then pass that to useLiveQuery, or should I just pass the full
Just trying to minimize work on re-renders or worse, end up with multiple inconsistent collections.
Example:
All-In-One
vs separate memoized collection
Thanks!
createCollection with options to useLiveQuery and it will ensure I don't get a dupe if the options are the same?Just trying to minimize work on re-renders or worse, end up with multiple inconsistent collections.
Example:
All-In-One
vs separate memoized collection
Thanks!