3 ms·
This seems like a super aggressive move, giving up lots of performance & complexity for some pretty com ppl lex consistency checking. Is tbis in production bui
by rektide 5y ago
This seems like a super aggressive move, giving up lots of performance & complexity for some pretty com ppl lex consistency checking.
Is tbis in production build too?
- technion 5y agoNo, this is document as only occurring in development mode.
- tomduncalf 5y agoYea sadly there weren’t enough characters in the title field for me to put “strict dev mode” so that nuance was lost Edit: dang updated the post title to include this
- tomstuart 5y agoAside from being development-only, note that you also need to wrap a component in `<React.StrictMode>…</React.StrictMode>` to opt it into this.
- tomduncalf 5y agoYeah, good point - I thought it could be that Next.js changed their default behaviour to use strict mode when they upgraded to React 18 but another comment says React 17 silenced the duplicate logs(!) so maybe the change is older than that.