one
Version:
One is a new React Framework that makes Vite serve both native and web.
11 lines (10 loc) • 327 B
JavaScript
function findFocusedRoute(state) {
let current = state;
while (current?.routes[current.index ?? 0].state != null) {
current = current.routes[current.index ?? 0].state;
}
const route = current?.routes[current?.index ?? 0];
return route;
}
export { findFocusedRoute };
//# sourceMappingURL=findFocusedRoute.mjs.map