Skip to content

React-cache sometimes falls into infinite loop #193

@szogun1987

Description

@szogun1987

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions