bndkt / sharemystack

Share your stack with the world!
https://sharemystack.com
309 stars 25 forks source link

Hooks vs withobservable #295

Open Hannes1 opened 3 months ago

Hannes1 commented 3 months ago

Firstly, I love the app, and thanks for making this open source. The code you've written is really easy to understand and reusable.

This is a noob question regarding watermelondb. Are there any drawbacks using hooks to observe changes in the database instead of using the withobservable HOC?

Really, like how the hooks are used to talk with the database, I was just wondering if there would be performance drawbacks with large amounts of data and thus a lot of rerenders possibly 🤔