alloc / alloc/wana

Prepare for concurrent mode

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
176
Forks
9
PR merge metrics
No merged PRs in 30d

Description

In concurrent mode, renders can be discarded, which means they'll never be committed to the DOM (or whatever native host). There are potentially other issues as well (see [here](https://github.com/dai-shi/will-this-react-global-state-work-in-concurrent-mode)).

Currently, the `withAuto` and `useAuto` functions cause side effects during render, which means memory leaks **will** occur in concurrent mode.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.