hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.04k stars 2.76k forks source link

componentWillReceiveProps warning #2714

Closed ZBr14n closed 4 years ago

ZBr14n commented 5 years ago

Hello, I was able to compile and run this boilerplate nextjs-postgres-graphql, but when I inspect the console, it is throwing a warning. How do I resolve this?

https://github.com/hasura/graphql-engine/tree/master/community/sample-apps/nextjs-postgres-graphql

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

Please update the following components: Query

image

marionschleifer commented 5 years ago

@ZBr14n thank you for reporting this. This is a deprecation warning because of using a newer version of React. We will update this in the boilerplate and let you know 🙂