3 ms·
Would you recommend using it in production?
by niux 4y ago
Would you recommend using it in production?
- JoeOfTexas 4y agoOnly for small projects. However, I do use it for some of my bigger projects. `useWatch` will cause a re-render every time `set` is used on the watched key. If used wisely, you can trigger re-renders on demand, and use `get` for other data you need. In future, I plan on making another hook that only re-renders if data has changed.