Category : mobx-state-tree

Have this lines of code that quite hard for me to understand: const useUserDataStore = dataSelector => useMSTStore(USER_DATA_STORE_TREE_PATH_NAME, dataSelector); const useCurrentPhoneNumber = () => useUserDataStore(store => store.phoneNumber); The exact part that I want to check is passing (store => store.phoneNumber) to useUserDataStore function as argument. Do I understand it correctly? We take store and extract ..

Read more

What should happen – succesfully create RootStore from defaultSnapshot and reset it when needed, successful backcuping in localStorage. What happens – getting an error while trying to apply a snapshot, when attempting to open page, just by running code even without interacting with it. When checking types manually I do not see problems with type ..

Read more