Skip to content

Commit

Permalink
updated copy in multiple-stores.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbnewman committed Feb 26, 2020
1 parent 7b2c9a4 commit e274d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/multiple-stores.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default App;

Note that each `Provider` must be retrieved using its own `identifier`. In the case of the `owner`, we just use the default one supplied by **mobx-store-provider**.

In the `PedDisplay` component we get each store with the [useStore hook](/api/useStore) making sure to pass the same `identifier` used when retreiving their respective `Provider`.
In the `PedDisplay` component we get each store with the [useStore hook](/api/useStore), making sure to pass the same `identifier` used when retreiving their respective `Provider`:

```javascript
// PetDisplay.jsx
Expand All @@ -63,7 +63,7 @@ function PetDisplay() {
export default PetDisplay;
```

To keep things clean we define the `stores` and their `identifier` in a separate module.
To keep things clean in this example we define the `stores` and their `identifier` in a separate module.

```javascript
// stores.js
Expand Down

0 comments on commit e274d50

Please sign in to comment.