mirror of
https://github.com/MODSetter/SurfSense
synced 2026-06-21 13:44:09 +00:00
68e6acd504
Wrap the opts object and derived context in useMemo so ZeroReactProvider receives stable references across parent re-renders. Before this change opts was rebuilt on every render of ZeroProvider, which can cause the Rocicorp Zero client to churn its internal state / reconnect if it compares props by reference. Fixes #1097.