Site / foldkit-site
ChangedFor
type · packages/site/src/index.ts:556
type ChangedFor<Kind, Route, ChildMessage> = Kind extends Bundle.Loadable
? {
readonly changed: (route: Route) => ChildMessage
}
: {
readonly changed?:
((route: Route) => ChildMessage | undefined) | undefined
}How a placed page hears its route arrive: optional, and free to say nothing,
for an eager Bundle; required, and always a Message, for a Bundle.lazy,
whose bodies load on that Message.