Reactjs – How to delay or wait fetch before load mockServiceWorker.js on page reloading
I am currently developing a front-end application in Nextjs, using RTK Query for API fetching and use MSW for its mock. If mockServiceWorker.js is already loaded at the time the page is loaded, the API mock will be intercepted without…