Describe the bug
This shouldn't be used directly and instead, it should use the GB apiFecth interface. This will provide support for retries and cache of the data.
The only thing needed is to add the /wp/v2/categories to the white list here:
|
[ /wp\/v2\/media\/?\d*?.*/i ].some( ( pattern ) => pattern.test( path ) ); |
Reference
Expected behavior
Categories should still be fetched