Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Server Side Rendering and skip option #244

Closed
pfulop opened this issue Oct 5, 2016 · 1 comment
Closed

Server Side Rendering and skip option #244

pfulop opened this issue Oct 5, 2016 · 1 comment

Comments

@pfulop
Copy link

pfulop commented Oct 5, 2016

Hi,
I am using skip option to get user name only if he is authenticated. However, it looks like this option is ignored by renderToStringWithData since the query will fire anyway.

const me = graphql(gql `
  query me{
    me{
      fullname
     }
}
 `,{
  options: (ownProps) => ({ skip: true })
  });
@jbaxleyiii
Copy link
Contributor

@pfulop this is fixed with #253 which will be released today!

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

No branches or pull requests

2 participants