File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed
packages/overmind-website/src/overmind Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -124,15 +124,3 @@ export const changeQuery: Operator<string> = pipe(
124124export 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- }
Original file line number Diff line number Diff line change 1- import { Derive , SERIALIZE } from 'overmind'
2-
31import {
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
4836const state : State = {
@@ -66,7 +54,6 @@ const state: State = {
6654 isLoadingVideos : false ,
6755 showViewHelp : false ,
6856 versions : { } ,
69- user : new User ( ) ,
7057}
7158
7259export default state
You can’t perform that action at this time.
0 commit comments