Skip to content

GraphQL

Scotty Waggoner edited this page May 29, 2019 · 2 revisions

Tooling Implementation:

Best Practices:

  1. Screens should load their own data or use fragments and have their parent load the data
  2. Specify a fetchPolicy that makes sense for your query. cache-first (the default) is probably good for loading infrequently used data. cache-and-network is probably good if the data on the server changes frequently (but results in more server load) or if the user has no way to pull to refresh. network-only works for refreshing data that you don't need to use immediately.
Clone this wiki locally