grapher-react icon indicating copy to clipboard operation
grapher-react copied to clipboard

withQuery runs twice...

Open stigfaerch opened this issue 7 years ago • 1 comments

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

stigfaerch avatar Mar 20 '18 21:03 stigfaerch

@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

theodorDiaconu avatar Mar 31 '18 03:03 theodorDiaconu