Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Batch re-renders on state change. #129

@quisido

Description

@quisido

Current behavior:
One component subscribed to two state properties rerenders twice if both change at the same time.

Desired behavior:
It should rerender once.

unstable_batchedUpdates((): void => {
  for (const subscription of subscriptions) {
    subscription();
  }
});

Metadata

Metadata

Assignees

Labels

featureA new feature is requested.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions