Trying to create something like this in zustand store -
const authorisationStore = (set, get) => ({
authorisationData: new Map(),
..............
But when this store variable is retrieved first time in app.js , its value remain as {} instead of map object. My purpose is to check if map is having particular key but once I do authorisationdata.get('djhdg') , it fails saying get is not a function.