You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most blocks rely on wp.apiFetch to perform the API requests, so it seems like a good candidate to mocking APIs. Right now, it's already possible to do so by registering a custom middleware. We can try to make it more user-friendly and document it.
For APIs not relying on wp.apiFetch, I think you should check if the library you're using allows interceptors, most generally do.
Some blocks depend on the WP API, it would be great to be able to mock the API to preview these blocks in isolation.
The text was updated successfully, but these errors were encountered: