Great deep dive! As a complement, I’d suggest wrapping your custom store in a React.memo on the consumer side or using useSyncExternalStore for optimal re-render performance, especially in large component trees. This ensures you're not reinventing the wheel on subscription logic while still owning the state layer.