Patch Changes
043850ed96266f8bea42bf643a65e62245a98b3c#4689 Thanks @gesposito! - fix:useObserverno longer retains the element tree returned by a component's first render for the component's whole mounted life.subscribe/getSnapshotwere created insideuseObserver's first invocation and therefore shared that invocation's closure context with thereaction.trackcallback's captures (render,renderResult); since React'suseSyncExternalStoreholdssubscribewhile the component is mounted, the first render result (and every fiber and DOM node reachable from it) could never be garbage collected. The administration object is now created by a module-level factory whose scope contains nothing render-related.