Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First pass at disabling force-fetch in SSR contexts #309

Merged
merged 4 commits into from
Jun 27, 2016

Conversation

tmeasday
Copy link
Contributor

@tmeasday tmeasday commented Jun 24, 2016

This is just a start in the direction of #298

If we think it's the right approach (modifying query options at the ApolloClient layer), then I'll add tests and turn it into a proper PR.

TODO:

  • Update CHANGELOG.md with your change
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

@stubailo
Copy link
Contributor

This looks pretty good to me!

@tmeasday
Copy link
Contributor Author

Added tests, please take a look.

@@ -879,4 +880,103 @@ describe('client', () => {
});
});
});

describe.only('forceFetch', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does describe.only do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, just runs those tests.

@stubailo
Copy link
Contributor

Looks good to me!

@tmeasday
Copy link
Contributor Author

Hmm, and somehow I broke other tests, investigating.

@tmeasday tmeasday force-pushed the 298-ssr-disable-force-fetch branch from c867ec8 to 0bef530 Compare June 27, 2016 05:43
@tmeasday
Copy link
Contributor Author

Ok, this is working now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants