Duplicate Zustand store subscribers after React 18 Strict Mode remount
A small application is being migrated to Zustand incrementally, replacing local state in isolated components without stopping the app. The application runs React 18 with Strict Mode enabled in development, so components mount, unmount, and remount. The goal is to determine whether store subscriptions created by the Zustand hook are cleaned up reliably betwee