Skip to content

useStore and useTable #218

@tnspacetime

Description

@tnspacetime

I've been using this library for a while for a real project and I really like it. I have a question: it seems to me useStore returns a store with many methods that can be called, but is not reactive. On the other hand, useTable is reactive (it forces a re-render whenever there's a change to the table), but the returned value is a simple object WITHOUT any query ability.

Would it be a good idea to add helpful functions to the returned table (i.e. those that may be used to query for data)? I'm asking this because I'm using Queries but they're not reactive, and I need to explicitly add listener so that if there's a change in the data (in my table), the UI is re-rendered. (Btw, another question: why is that that Queries are not reactive?)

Thank you again for the awesome library!

Metadata

Metadata

Assignees

Labels

more info requiredCould you answer a few extra questions to clarify?questionNot so much a bug or issue than help required

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions