Top "Mobx-react" questions

MobX is a battle-tested library that makes state management simple and scalable

Can't call setState on a component that is not yet mounted

this is the first time I face this warning message. Can't call setState on a component that is not yet …

javascript reactjs mobx mobx-react
MobX: Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed

My context looks like this: class AuthStoreClass { authUser = null constructor() { makeAutoObservable(this) } login = async (params) => { const { data: { data: authUser } } = …

reactjs mobx mobx-react mobx-react-lite
How to inject mobx store into a stateless component

I am using mobx and react in a web application and I want to find a way to pass mobx …

javascript reactjs mobx mobx-react
using mobx with react functional components and without decorators

I'm trying to get MobX to work with functional components in react. I want to do this without having to …

reactjs mobx mobx-react
Correct way of Creating multiple stores with mobx and injecting it into to a Component - ReactJs

As suggested here in the Mobx documentation I have created multiple stores in the following manner: class bankAccountStore { constructor(rootStore){ …

reactjs mobx mobx-react state-management
React-MobX Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean

I get the following error: If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, …

reactjs decorator mobx-react
React Hooks (useState) and Mobx [No mobx-react-lite]

in my react application (with typescript) I want to use React hooks (specifically useState) to manage the form state and …

reactjs mobx mobx-react react-hooks react-tsx
React not rerendering after mobx observer change

Upon page load, I see "hi2" When I click the button, nothing happens. I tried with setUser as well. I …

reactjs mobx mobx-react
How to save Mobx state in sessionStorage

Trying to essentially accomplish this https://github.com/elgerlambert/redux-localstorage which is for Redux but do it for Mobx. And …

reactjs mobx mobx-react