jaredLunde/react-hook

React-cache sometimes falls into infinite loop

szogun1987 opened this issue · 0 comments

Describe the bug
An application that uses cache sometimes freezes,

To Reproduce
Steps to reproduce the behavior:

  1. Create a component that uses a cached value with the given key
  2. Create another component that uses a cached value with the same key
  3. Remove the second component from the components tree
  4. Write a new value for the watched key
  5. Application freezes

Expected behavior
The remaining component should be refreshed,

Screenshots
None

Desktop (please complete the following information):

  • OS: found on Windows and Mac
  • Browser: found on Edge, Chrome, Safari and Firefox
  • Version: pretty current

Smartphone (please complete the following information):
Not tested on mobile

Additional context
PR is already prepared