pub fn side_effect_status_code(status_code: u16) {
    match status_code {
        403 | 401 => {
            Route::User(UserRoute::NoAuth).redirect();
            //web_sys::window().unwrap_ji().alert_with_message(crate::strings::STR_AUTH_ALERT);
        }
        _ => {}
    }
}
//made pub just in case, but rarely ever called from the outside
//helpful for debugging sometimes too
made pub just in case, but rarely ever called from the outside
helpful for debugging sometimes too
made pub just in case but rarely ever called from the outside helpful for debugging sometimes too
pub fn side_effect_status_code(status_code: u16) {
    match status_code {
        403 | 401 => {
            Route::User(UserRoute::NoAuth).redirect();
            //web_sys::window().unwrap_ji().alert_with_message(crate::strings::STR_AUTH_ALERT);
        }
        _ => {}
    }
}
pub fn side_effect_status_code ( status_code : u16 ) { match status_code { 403 | 401 => { Route :: User ( UserRoute :: NoAuth ) . redirect ( ) ; //web_sys::window().unwrap_ji().alert_with_message(crate::strings::STR_AUTH_ALERT); } _ => { } } }
made pub just in case, but rarely ever called from the outside
helpful for debugging sometimes too
made pub just in case but rarely ever called from the outside helpful for debugging sometimes too
status_code
u16
status_code
u16