Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

A sample repo to demonstrate an issue with multiple instances in MobX

Notifications You must be signed in to change notification settings

mikecann/mobx-multiple-instance-issue-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobx-multiple-instance-issue-sample

Install dependencies

$ yarn install

Then

$ yarn start

Should open a page in browser at localhost:3000, open the developer tools in chrome, notice the Mobx multiple-instances warning.

Notes

I noticed if I replace all the usages of yarn with npm then the problem doesnt show itself. Is this a yarn issue? It looks like yarn is running some post-install commands in /client that npm doesnt?

Solution

See branch the_solution (https://github.com/mikecann/mobx-multiple-instance-issue-sample/tree/the_solution) for how to fix this.

Full credit goes to @mweststrate mobxjs/mobx#1082 (comment)

About

A sample repo to demonstrate an issue with multiple instances in MobX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published