Skip to content

Zombie child, yet again #302

Closed
Closed
@ratoi-crysty

Description

There still seems to be the issue of zombie child. It requires some special criteria to reproduce:

  1. The state needs to have initial value
  2. The delete action, needs to be async called in regards to the event handler (Ex.: wrap the action call inside a setTimeout)
  3. This is reproducible only on the elements that were present in the initial state.

Note, that the same scenario is not reproducible while using redux with hooks.

Repo to reproduce: https://github.com/ratoi-crysty/zustand-zombie-child

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions