Skip to content

Commit d59116d

Browse files
author
Guillaume Chau
committed
Readme
1 parent 8dffeb0 commit d59116d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,17 @@ It takes an `options` argument which defaults to:
12581258
}
12591259
```
12601260

1261+
You can also use the `apolloProvider.getStates` method to get the JS object instead of the script string.
1262+
1263+
It takes an `options` argument which defaults to:
1264+
1265+
```javascript
1266+
{
1267+
// Prefix for the keys of each apollo client state
1268+
exportNamespace: '',
1269+
}
1270+
```
1271+
12611272
### Creating the Apollo Clients
12621273

12631274
It is recommended to create the apollo clients inside a function with an `ssr` argument, which is `true` on the server and `false` on the client.

0 commit comments

Comments
 (0)