Skip to content

Commit

Permalink
Update nextjs.md (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbritto-dev committed Feb 10, 2024
1 parent 02ddd70 commit b466a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export type CounterActions = {

export type CounterStore = CounterState & CounterActions

export const defaultInitState: Partial<CounterState> = {
export const defaultInitState: CounterState = {
count: 0,
}

export const createCounterStore = (
initState: Partial<CounterState> = defaultInitState,
initState: CounterState = defaultInitState,
) => {
return createStore<CounterStore>()((set) => ({
...initState,
Expand Down

0 comments on commit b466a75

Please sign in to comment.