Watermelondb: React Hooks

Created on 27 Feb 2019  Â·  2Comments  Â·  Source: Nozbe/WatermelonDB

Full api using only React Hooks.

I see there's an open PR for one hook but I didn't find an issue specific for this.

Most helpful comment

Hi @brunolemos, I'm working on a basic useDatabase hook (ie: useContext(DatabaseContext) in https://github.com/Nozbe/WatermelonDB/pull/269. I'm also working on TypeScript typing:

usedatabase-ts

What other hooks did you have in mind?

My knowledge of hooks, observables and typescript is very basic, I could use some tips if you have some 😄

All 2 comments

Hi @brunolemos, I'm working on a basic useDatabase hook (ie: useContext(DatabaseContext) in https://github.com/Nozbe/WatermelonDB/pull/269. I'm also working on TypeScript typing:

usedatabase-ts

What other hooks did you have in mind?

My knowledge of hooks, observables and typescript is very basic, I could use some tips if you have some 😄

useDatabase is merged, useObservables is an open issue in the related repo. I don't see other use cases currently, but if there's there — feel free to sen PRs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bsr203 picture bsr203  Â·  6Comments

K4stor picture K4stor  Â·  7Comments

ieschalier picture ieschalier  Â·  8Comments

sebastian-schlecht picture sebastian-schlecht  Â·  8Comments

jdnichollsc picture jdnichollsc  Â·  4Comments