Skip to content
On this page

Barrier API

You will learn

  • How to postpone execution of a Query or Mutation until some conditions are met
  • How to perform some actions before the execution of a Query or Mutation

In the previous chapters, we learned how to fetch data from the server and how to display it. Now let us talk about suspending the execution of Queries and Mutations based on some criteria.

This topic is quite practical, so we suggest learning it by examples:

  1. How to check if the users token is valid before data fetching and perform some actions if it is not
  2. How to pause the execution of a Query until the user accepts term of use

If you want to learn more about the Barrier API, you can read the API reference.

Released under the MIT License.