GitHub

Isomorphic Hooks

useManifest

Retrieve the Manifest.

Client / Server


Usage

Retrieve the Manifest.

import { useManifest } from '@microeinhundert/radonis'


const manifest = useManifest()


console.log(manifest) // => `{ hydration: {}, globals: {}, flashMessages: {}, locale: 'en', messages: {}, routes: {}, route: {} }`

Caution

The Manifest differs between server-side rendering and client-side hydration, therefore don't use this hook inside of components you plan to hydrate on the client. However, if your specific use case requires having the same Manifest on both the client and the server, set client.limitManifest to false inside the Radonis config.

Previous
useI18n