You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/server-side-rendering.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,15 +218,15 @@ import { createHook } from "overmind-react";
218
218
exportconstconfig= {
219
219
state: {},
220
220
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
+
},
226
227
};
227
228
228
229
exportconstuseOvermind=createHook();
229
-
230
230
```
231
231
232
232
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