Skip to content

Commit 388dd2a

Browse files
AustioAkryum
authored andcommitted
docs: Update SSR Docs for serializer options. (#693)
1 parent 4b45aca commit 388dd2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/api/ssr.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ const js = ApolloSSR.exportStates(apolloProvider, options)
4141
attachTo: 'window',
4242
// Prefix for the keys of each apollo client state
4343
exportNamespace: '',
44+
// By default we use sanitize js library to prevent XSS
45+
// pass true here will perform a standard JSON.stringify on the states
46+
useUnsafeSerializer: false,
4447
}
4548
```

0 commit comments

Comments
 (0)