Perhaps this is so minimal (and such an unnecessary black box) that it should just be removed. Ideally developers would know what they are doing with store identity. Withdrawing this hook would require them to directly consider the approach they are taking. For many applications, a store created outside React altogether is a good option, for example, and eliminates any unexpected behaviours associated with store identity or initial state.
The implementation of useStore is just...
Perhaps this is so minimal (and such an unnecessary black box) that it should just be removed. Ideally developers would know what they are doing with store identity. Withdrawing this hook would require them to directly consider the approach they are taking. For many applications, a store created outside React altogether is a good option, for example, and eliminates any unexpected behaviours associated with store identity or initial state.