Skip to content

Conversation

MAST1999
Copy link

I've added the hooks for solidjs integration and all tests are passing too.

I can start the work on docs if the interface looks good.

@MAST1999
Copy link
Author

OK, I thought of this API for queries (inspired by TanStack DB and my own little wrapper that I wrote some time ago) which will remove the need for a separate params option.
And the last part could be an object with other configuration, for incremental it could be the key and for normal query it could be pagination (limit and offset).

useLiveQuery((sql) => sql`select * from test where name ilike %${someName}%`, ['id'])
useLiveQuery((sql) => sql`select * from test where name ilike %${someName}%`, {limit: 5, offset: 10})

What do you guys think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant