Skip to content

Commit

Permalink
fix: added html suffix to store links within docs;
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekk authored and ctrlplusb committed Oct 1, 2019
1 parent e0ddb22 commit d3cc2b5
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion website/docs/docs/api/computed.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function TotalPriceOfProducts() {

## Accessing via the store instance

You can also access the computed property via the [store's](/docs/api/store) `getState` API.
You can also access the computed property via the [store's](/docs/api/store.html) `getState` API.

```javascript
console.log(store.getState().products.totalPrice);
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/api/use-store-actions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# useStoreActions

A [hook](https://reactjs.org/docs/hooks-intro.html) granting your components access to the [store's](/docs/api/store) [actions](/docs/api/action.html).
A [hook](https://reactjs.org/docs/hooks-intro.html) granting your components access to the [store's](/docs/api/store.html) [actions](/docs/api/action.html).

```javascript
const addTodo = useStoreActions(actions => actions.todos.add);
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/api/use-store-dispatch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# useStoreDispatch

A [hook](https://reactjs.org/docs/hooks-intro.html) granting your components access to the [store's](/docs/api/store) dispatch.
A [hook](https://reactjs.org/docs/hooks-intro.html) granting your components access to the [store's](/docs/api/store.html) dispatch.

```javascript
const dispatch = useStoreDispatch();
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/api/use-store-state.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# useStoreState

A [hook](https://reactjs.org/docs/hooks-intro.html) granting your components access to the [store's](/docs/api/store) state.
A [hook](https://reactjs.org/docs/hooks-intro.html) granting your components access to the [store's](/docs/api/store.html) state.

```javascript
const todos = useStoreState(state => state.todos.items);
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/recipes/hot-reloading.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ if (process.env.NODE_ENV === "development") {
export default store;
```

Note how you can call the [store's](/docs/api/store) `reconfigure` method in order to reconfigure the store with your updated model. The existing state will be maintained.
Note how you can call the [store's](/docs/api/store.html) `reconfigure` method in order to reconfigure the store with your updated model. The existing state will be maintained.

You can [view a demo repository configured for hot reloading here](https://github.com/ctrlplusb/easy-peasy-hot-reload).
2 changes: 1 addition & 1 deletion website/docs/docs/testing/testing-thunks.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Within either of these strategies your thunks may perform side effects such as m

The `createStore` API contains a configuration property named `mockActions`, which if set to `true`, will ensure that any action that is dispatched will not be executed, and will instead be recorded - along with their payloads. You can then access the recorded actions via the `getMockedActions` function that is available on the store instance.

> We took inspiration for this strategy from the awesome [`redux-mock-store`](https://github.com/dmitry-zaets/redux-mock-store) package.
> We took inspiration for this strategy from the awesome [`redux-mock-store`](https://github.com/dmitry-zaets/redux-mock-store.html) package.
Given the following model under test:

Expand Down
4 changes: 2 additions & 2 deletions website/docs/docs/tutorial/consuming-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ This is another example of our `mapState` function performing some state derivin
## A note on optimisation
Under the hood the [useStoreState](/docs/api/use-store-state.html) will execute its `mapState` function any time an update to your [store's](/docs/api/store) state occurs. It will then check the result of the newly mapped state against the previously mapped state using strict equality (`===`) checking.
Under the hood the [useStoreState](/docs/api/use-store-state.html) will execute its `mapState` function any time an update to your [store's](/docs/api/store.html) state occurs. It will then check the result of the newly mapped state against the previously mapped state using strict equality (`===`) checking.
If the newly mapped state ***is not equal*** to the previously mapped state (`nextMappedState !== prevMappedState`) your component will be rendered, receiving the new value. If the newly mapped state ***is equal*** to the previously mapped state (`nextMappedState === prevMappedState`) no render will occur.
Expand All @@ -126,7 +126,7 @@ This performance pitfall is described within the [useStoreState](/docs/api/use-s
## Review
Awesome sauce, our components are hooked up to our [store's](/docs/api/store) state! As amazing as that is, our application is essentially static right now, with no ability to update our [store's](/docs/api/store) state.
Awesome sauce, our components are hooked up to our [store's](/docs/api/store.html) state! As amazing as that is, our application is essentially static right now, with no ability to update our [store's](/docs/api/store.html) state.
In the next section we'll look into how we can use [actions](/docs/api/action.html) in order to support updates.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/docs/typescript-tutorial/create-your-store.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Creating your store

The heart of the TypeScript integration with Easy Peasy are the typing definitions you define to represent your [store's](/docs/api/store) model. This typing information can then be used by the various Easy Peasy APIs to provide you with assertions, code completions, etc.
The heart of the TypeScript integration with Easy Peasy are the typing definitions you define to represent your [store's](/docs/api/store.html) model. This typing information can then be used by the various Easy Peasy APIs to provide you with assertions, code completions, etc.

For this tutorial we will create a model consisting of two slices; todos and an audit log.

Expand Down Expand Up @@ -80,7 +80,7 @@ import storeModel from './model';
const store = createStore(storeModel);
```

The [store](/docs/api/store.html) that is returned will be fully typed. If you try to use the [store's](/docs/api/store) APIs you will note the typing information and code completion being offered by your IDE.
The [store](/docs/api/store.html) that is returned will be fully typed. If you try to use the [store's](/docs/api/store.html) APIs you will note the typing information and code completion being offered by your IDE.

<div class="screenshot">
<img src="../../assets/typescript-tutorial/typed-get-state.png" />
Expand Down

0 comments on commit d3cc2b5

Please sign in to comment.