Skip to main content
Pass 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’s weaverseData loader field is used, so a layout route and a child route can each render their own root.
  • Missing auto-resolved data renders errorComponent.
  • Registers components and creates the page-level Weaverse runtime. Theme settings, translations and the Studio connection come from withWeaverse on the root Layout.
Pass data explicitly when a layout and a child route render different Weaverse pages on the same URL: