Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@trik
Copy link
Contributor

@trik trik commented Jan 15, 2026

This PR contains:

A new React plugin that provides a set of React Hooks for RxDB

Describe the problem you have without this PR

The library https://github.com/cvara/rxdb-hooks is outdated and not maintened anymore

Todos

  • Documentation

@trik
Copy link
Contributor Author

trik commented Jan 15, 2026

@pubkey the useRxQuery hook is simpler than the one in the original library
there's no option for pagination that can be achieved easily simply altering the mango query
the only other parameter is the live bool

probably we could return an helper method to manually stop the live query, that obviously does nothing with one-shot queries

it could be useful to add a useInitRxDatabase to simplify the db init process, what do you think?

@pubkey
Copy link
Owner

pubkey commented Jan 19, 2026

@trik Thank you so much for your work.

I added the RxDatabase.collections$ directly into the core (slightly renamed): #7705

there's no option for pagination that can be achieved easily simply altering the mango query

That is ok, people can paginate by running new queries.

Can you add documentation for this somehow. I never used the old rxdb-hooks.

@trik
Copy link
Contributor Author

trik commented Jan 22, 2026

@pubkey removed the custom plugin and now i'm using the core collections$

added some documentation in code for all the hooks and the provider component

pubkey added a commit that referenced this pull request Jan 23, 2026
@pubkey pubkey merged commit daf1bfc into pubkey:master Jan 26, 2026
22 checks passed
@pubkey
Copy link
Owner

pubkey commented Jan 26, 2026

Thank you for your work @trik
I justs merged this.
Notice that I will add some changes and docs. Will be released in the netx v17 beta.

@pubkey pubkey mentioned this pull request Jan 26, 2026
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.

2 participants