How to save Mobx state in sessionStorage?

Posted by Jessica Taylor | Updated on

Want to save Mobx state in sessionStorage? The easiest way to approach this would be to have a mobx “autorun” triggered whenever any observable property changes. To do that, you could follow my answer to this question.

I’ll put some sample code here that should help you get started:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers