Skip to content

Commit a03661f

Browse files
docs(website): add json docs and vue version recommendation
1 parent 0174c6d commit a03661f

File tree

15 files changed

+116
-481
lines changed

15 files changed

+116
-481
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Json
2+
3+
Overmind wraps objects and arrays in your state structure with proxies. If you pass state to 3rd party libraries, to a service worker or similar, you should pass a long a copy of that state. This avoids the 3rd party tool from mutating your state when you do not want it to.
4+
5+
```marksy
6+
h(Example, { name: "api/json" })
7+
```
8+
9+
This function does a copy of any plain object or array, which are the only values that is wrapped with proxies. This ensures minimal work is done and keeps all other values alone.

packages/overmind-website/examples/api/components_component.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/overmind-website/examples/api/components_events.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/overmind-website/examples/api/components_jsx.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/overmind-website/examples/api/components_keys.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

packages/overmind-website/examples/api/components_props.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

packages/overmind-website/examples/api/components_render.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/overmind-website/examples/api/components_style.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

packages/overmind-website/examples/api/components_useEffect.ts

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)