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

withQuery runs twice... #20

Open
stigfaerch opened this issue Mar 20, 2018 · 1 comment
Open

withQuery runs twice... #20

stigfaerch opened this issue Mar 20, 2018 · 1 comment
Labels

Comments

@stigfaerch
Copy link

Is it expected that withQuery runs twice?
The first time the query return 'undefined' and the second time it returns what is expected.
Also inserting console.log inside the function defined on withQuery and on PostList reveals that it runs twice.
I have a similar setup to the simple usage example:
https://github.com/cult-of-coders/grapher-react#simple-usage

@theodorDiaconu
Copy link
Contributor

theodorDiaconu commented Mar 31, 2018

@stigfaerch it depends on your high order component, maybe that Component sends props 2 times based on a state or something ? A quick reproduction can be very helpful

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

No branches or pull requests

2 participants