Does Sandpack offer an option to turn off StrictMode? #704
-
The use case for me is sharing sandboxes with images and video. I use it for training. I need to be able to show image lazy downloading in the network inspector. I also need to turn off StrictMode to prevent the double of render of images. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey! I'm not sure what you mean by Thanks |
Beta Was this translation helpful? Give feedback.
-
When you create a React App using create-react-app or the codesandbox.io React template it wraps the app in the
StrictMode forces apps in development to render twice looking for side effects https://reactjs.org/docs/strict-mode.html |
Beta Was this translation helpful? Give feedback.
When you create a React App using create-react-app or the codesandbox.io React template it wraps the app in the
<StrictMode>
component like thisStrictMode forces apps in development to render twice looking for side effects https://reactjs.org/docs/strict-mode.html
In my Sandpacks I am rendering images. This is for training. I have some demos where we look at the Chrome network tab to see when an image is rendered. If I'm demoing a…