Skip to content

Commit ec76f39

Browse files
chore(website): remove test code
1 parent bd0b9c8 commit ec76f39

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

packages/overmind-website/src/overmind/actions.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,3 @@ export const changeQuery: Operator<string> = pipe(
124124
export const viewHelpGotIt: Action = ({ state }) => {
125125
state.showViewHelp = false
126126
}
127-
128-
export const test: Action = ({ state }) => {
129-
rehydrate(
130-
state,
131-
{
132-
user: {
133-
name: 'Bob',
134-
},
135-
},
136-
{}
137-
)
138-
}

packages/overmind-website/src/overmind/state.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Derive, SERIALIZE } from 'overmind'
2-
31
import {
42
Api,
53
Demo,
@@ -33,16 +31,6 @@ type State = {
3331
versions: {
3432
[name: string]: string
3533
}
36-
user: User
37-
}
38-
39-
class User {
40-
[SERIALIZE]
41-
name = 'Bob'
42-
toJSON() {}
43-
static fromJSON(json) {
44-
return Object.assign(new User(), json)
45-
}
4634
}
4735

4836
const state: State = {
@@ -66,7 +54,6 @@ const state: State = {
6654
isLoadingVideos: false,
6755
showViewHelp: false,
6856
versions: {},
69-
user: new User(),
7057
}
7158

7259
export default state

0 commit comments

Comments
 (0)