We use the fetch API for network calls in Grove. This should be documented, so that developers know to use fetch for any network calls that they write.
This is particularly important in the React stack, because the application overrides the global fetch() in order to detect 401s and log out the current user.
When using fetch, it is important to include the following option:
We use the fetch API for network calls in Grove. This should be documented, so that developers know to use fetch for any network calls that they write.
This is particularly important in the React stack, because the application overrides the global
fetch()
in order to detect 401s and log out the current user.When using fetch, it is important to include the following option: