Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Commit

Permalink
Tweak withClientState signature to work around typescript bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Ward authored and peggyrayzis committed Jan 8, 2018
1 parent 357b9cb commit 668c7d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/apollo-link-state/src/index.ts
Expand Up @@ -21,8 +21,9 @@ export type ClientStateConfig = {
};

export const withClientState = (
{ resolvers, defaults, cache }: ClientStateConfig = { resolvers: {} },
clientStateConfig: ClientStateConfig = { resolvers: {} },
) => {
const { resolvers, defaults, cache } = clientStateConfig;
if (cache && defaults) {
cache.writeData({ data: defaults });
}
Expand Down

0 comments on commit 668c7d0

Please sign in to comment.