Skip to content

Commit 6dbd5f6

Browse files
authored
fix docs in next page
1 parent ed23274 commit 6dbd5f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/server-side-rendering.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,15 @@ import { createHook } from "overmind-react";
218218
export const config = {
219219
state: {},
220220
actions: {
221-
add
222-
changePage({ state }, mutations) {
223-
rehydrate(state, mutations || []);
224-
}
225-
}
221+
add: {
222+
changePage({ state }, mutations) {
223+
rehydrate(state, mutations || []);
224+
},
225+
},
226+
},
226227
};
227228

228229
export const useOvermind = createHook();
229-
230230
```
231231

232232
And you are all set to get going with `overmind` and `next.js`. You can also take a look at [this example in the next.js examples directory](https://github.com/vercel/next.js/tree/canary/examples/with-overmind) if you need some help.

0 commit comments

Comments
 (0)