We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4e8bd6 + d21ba0b commit 536fc61Copy full SHA for 536fc61
examples/crm/src/index.tsx
@@ -7,13 +7,19 @@ import { worker } from './providers/fakerest/fakeServer';
7
const container = document.getElementById('root');
8
const root = createRoot(container!);
9
10
-worker.start({ onUnhandledRequest: 'bypass', quiet: true }).then(() => {
11
- root.render(
12
- <React.StrictMode>
13
- <App />
14
- </React.StrictMode>
15
- );
16
-});
+worker
+ .start({
+ onUnhandledRequest: 'bypass',
+ quiet: true,
+ serviceWorker: { url: './mockServiceWorker.js' },
+ })
+ .then(() => {
17
+ root.render(
18
+ <React.StrictMode>
19
+ <App />
20
+ </React.StrictMode>
21
+ );
22
+ });
23
24
// If you want to start measuring performance in your app, pass a function
25
// to log results (for example: reportWebVitals(console.log))
0 commit comments