chore: clean nav logs

This commit is contained in:
devthejo 2025-07-02 13:10:31 +02:00
parent 47f11d1b88
commit 6378758f9b

View file

@ -61,7 +61,7 @@ export default createAtom(({ get, merge, reset }) => {
...m, ...m,
routeName, routeName,
}); });
navLogger.info("Route updated", { routeName }); navLogger.debug("Route updated", { routeName });
}; };
const initialValues = { const initialValues = {
@ -78,11 +78,11 @@ export default createAtom(({ get, merge, reset }) => {
default: initialValues, default: initialValues,
actions: { actions: {
reset: () => { reset: () => {
navLogger.info("Resetting navigation state to initial values"); navLogger.debug("Resetting navigation state to initial values");
reset(); reset();
}, },
updateRouteFromRootStack: (state) => { updateRouteFromRootStack: (state) => {
navLogger.info("Updating route from root stack", { state }); navLogger.debug("Updating route from root stack", { state });
const { index, routeNames } = state; const { index, routeNames } = state;
const rootRouteName = routeNames[index]; const rootRouteName = routeNames[index];
updateRoute({ updateRoute({
@ -90,7 +90,7 @@ export default createAtom(({ get, merge, reset }) => {
}); });
}, },
updateRouteFromDrawer: (state) => { updateRouteFromDrawer: (state) => {
navLogger.info("Updating route from drawer", { state }); navLogger.debug("Updating route from drawer", { state });
const { index, routeNames } = state; const { index, routeNames } = state;
const drawerRouteName = routeNames[index]; const drawerRouteName = routeNames[index];
updateRoute({ updateRoute({
@ -98,7 +98,7 @@ export default createAtom(({ get, merge, reset }) => {
}); });
}, },
updateRouteFromMain: (state) => { updateRouteFromMain: (state) => {
navLogger.info("Updating route from main", { state }); navLogger.debug("Updating route from main", { state });
const { index, routeNames } = state; const { index, routeNames } = state;
const mainRouteName = routeNames[index]; const mainRouteName = routeNames[index];
updateRoute({ updateRoute({
@ -106,13 +106,13 @@ export default createAtom(({ get, merge, reset }) => {
}); });
}, },
setNextNavigation: (nextNavigation) => { setNextNavigation: (nextNavigation) => {
navLogger.info("Setting next navigation", { nextNavigation }); navLogger.debug("Setting next navigation", { nextNavigation });
merge({ merge({
nextNavigation, nextNavigation,
}); });
}, },
setMessageViewFocus: (isFocused, alertId = null) => { setMessageViewFocus: (isFocused, alertId = null) => {
navLogger.info("Setting message view focus", { isFocused, alertId }); navLogger.debug("Setting message view focus", { isFocused, alertId });
merge({ merge({
isOnMessageView: isFocused, isOnMessageView: isFocused,
currentMessageAlertId: isFocused ? alertId : null, currentMessageAlertId: isFocused ? alertId : null,