Skip to content

Commit

Permalink
Write to ROOT_SUBSCRIPTION instead of ROOT_QUERY
Browse files Browse the repository at this point in the history
Fixes #999
  • Loading branch information
Sashko Stubailo committed Jan 5, 2017
1 parent f821042 commit ede3948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function data(
// write to "the" store?
let newState = writeResultToStore({
result: action.result.data,
dataId: 'ROOT_QUERY', // TODO: is this correct? what am I doing here? What is dataId for??
dataId: 'ROOT_SUBSCRIPTION',
document: action.document,
variables: action.variables,
store: clonedState,
Expand Down

0 comments on commit ede3948

Please sign in to comment.