Is `enableStaticRendering` needed when used on vercel?
Closed this issue · 2 comments
xieyuheng commented
Like the enableStaticRendering
of mobx-react-lite
:
import { enableStaticRendering } from "mobx-react-lite"
enableStaticRendering(isServer())
xieyuheng commented
In mobx-react-lite
there is a note about SSR environment:
Call
enableStaticRendering(true)
when running in an SSR environment, in whichobserver
wrapped components should never re-render, but cleanup after the first rendering automatically. UseisUsingStaticRendering()
to inspect the current setting.
Do we need to worry about this when using mobx-vue-lite
?
If not, why?
(I am new to mobx, want to learn more about this.)
iChenLei commented
cc @wobsoriano