Skip to content

Conversation

@bengott
Copy link
Contributor

@bengott bengott commented Mar 28, 2017

remove componentWillReceiveProps from SearchForm component

  • it was resetting searchQuery when loading PostsSingle, which triggered a new search and a router.push

Let me know if there are any adverse effects to removing componentWillReceiveProps that I'm not aware of. This change fixes the bug behavior reported by Derek Braid here:
https://twitter.com/Royal_Arse/status/843509834314145792

- it was resetting searchQuery when loading PostsSingle, which triggered a new search and a router.push
@SachaG
Copy link
Collaborator

SachaG commented Mar 28, 2017

Unrelated to this, but would you like to work on porting Crater to Vulcan? (http://vulcanjs.org)

It'd be pretty cool to have a GraphQL-powered Crater :)

@bengott
Copy link
Contributor Author

bengott commented Mar 30, 2017

Yeah, I could be down for that. Not sure how much time I could devote to it right now, though. And I'd likely need access to some production resources (db data, maybe a test production environment) in the future. So we'd need to get with Josh on that... But for now, I can play around with it on my local machine.

@bengott
Copy link
Contributor Author

bengott commented Mar 30, 2017

@SachaG I noticed that this code also exists in Telescope/Vulcan, so I'm investigating...
UPDATE:
Seems that it doesn't trigger a new search/router.push like on Crater due to the GraphQL-related changes. So I guess we're good there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants