In chrome developer tools is very useful to "replay xhr" for a xhr request (network tab). I have started using fetch in my code, and chrome developer tools do not allow to "replay" a fetch request, how is can it be? Am I doing something wrong?
Just right click on the request and select Replay XHR. Another way as others pointed out is to: Right click request > "Copy" > "Copy ss curl". Paste it to shell. or.
Right-click it and select Edit and Resend. In the new panel that appears, you can edit the method, url, query string, headers, body, etc.
In Google Chrome, navigate to a page to research. Within the page, right-click (for PC users) or command-click (Mac users) to view options, and then click Inspect. The Inspect feature will display the troubleshooting console, which will enable all of the available tools in a panel on the side of the window.
To use it: Right click on a Network Panel Resource. Select Copy > Copy as Fetch.
Well, seems it's not supported yet. It's a real disappointment because "replay" is just too useful to stop using it.
So I followed @wOxxOm advice and I just created a promised version of the standard xhr: https://github.com/max-favilli/helper-xhr
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With