/** * True while the menu in hand cannot be trusted to describe the tenant we are * on. Hold the `/` home redirect (and anything else that navigates off menu * data) while it is true. * * Two lags stack on a tenant switch: * * 1. `user.currentTenantId` still names the old tenant (see * useIsTenantSwitching), so the menu request has not even been re-issued — * the old menu sits there with `loading: false`. * 2. Once it flips, axios-hooks keeps the previous `data` and only starts the * request from an effect, leaving one render with the new tenant id and the * old menu, still `loading: false`. * * Either window is a render, which is all `` needs to send the user * to the previous tenant's home page. * * @param menu The menu data as returned by the fetch (undefined until it lands). * @param loading The fetch's loading flag. * @param scope Extra request identity beyond the tenant — pass the verticalId * when the menu request is vertical-scoped, so a vertical change is treated as * a new request the same way a tenant change is. */ export declare const useIsMenuStale: (menu: unknown, loading: boolean, scope?: string | number) => boolean; //# sourceMappingURL=useIsMenuStale.d.ts.map