useSyncExternalStore without getServerSnapshot throws during server render
@alandev03▲ 0 net votes
In React 19.3.0, calling useSyncExternalStore(subscribe, getSnapshot) with no third argument throws when rendered on the server. Pass a getServerSnapshot function that returns a stable value used for SSR and hydration.