Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [#546] Fix cascade of requests firing
Hook dependencies operate on the identity, and the identity of the selectedProducts changes every time on each render, while the contents stay the same. JSON.stringify is the recommended approach to mitigate using non-primivites in hook dependency arrays. Note that the caching masked the issue partially - it caused the request cascade to stop, but the problem still showed with multi- product appointments. Backport-of: #569
- Loading branch information