Represents the possible states of a route. Used to indicate the current status of the router or route.
const { routerStore } = createRouter();const app = createForest("#app", () => addChild({ routerStore }, ({ routerStore }) => routerStore.status === "loading" ? LoadingComponent() : MainComponent())(tree("div"))); Copy
const { routerStore } = createRouter();const app = createForest("#app", () => addChild({ routerStore }, ({ routerStore }) => routerStore.status === "loading" ? LoadingComponent() : MainComponent())(tree("div")));
Represents the possible states of a route. Used to indicate the current status of the router or route.