data to override automatic route-loader resolution. A promise is
handled with React Router’s Await, while explicit null suppresses output.
- Without
data, the closest route’sweaverseDataloader field is used, so a layout route and a child route can each render their own root. - Missing auto-resolved data renders
errorComponent. - Registers
componentsand creates the page-level Weaverse runtime. Theme settings, translations and the Studio connection come from withWeaverse on the rootLayout.
data explicitly when a layout and a child route render different
Weaverse pages on the same URL: