Skip to content

useMutableSource: Release version snapshots once hydration is finished #18835

@bvaughn

Description

@bvaughn

Follow up for #18183 and PR #18771.

Decide when to clear mutableSourceEagerHydrationData. We don't currently have a way to detect when all outstanding hydration work is finished. (It may never finish.) This means that in use cases where the version is the entire sore (e.g. an immutable store without a version "number") we would retain a reference to that store, preventing it from being GCed.

Metadata

Metadata

Assignees

Labels

React Core TeamOpened by a member of the React Core Team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions