todo read about that https://github.com/bearjam/tom/blob/75d582d9f7f0d2d3a018b4b969d68b71b7fa42c5/src/zustand/middleware.ts