Skip to content

Commit

Permalink
Allow multiple instances of MobX
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Oct 1, 2020
1 parent 717bd35 commit 4f45c28
Show file tree
Hide file tree
Showing 5 changed files with 7,284 additions and 7,278 deletions.
2 changes: 2 additions & 0 deletions dist/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './poly';
import { configure } from 'mobx';
configure({ isolateGlobalState: true }); // Allow multiple instances of mobx
import { useLocalStore, useObserver } from 'mobx-react';
import { Checkout, Cart, CartCount, PaymentForm, ShippingForm } from './components';
import getStore from './stores';
Expand Down
Loading

0 comments on commit 4f45c28

Please sign in to comment.