skip to Main Content

Javascript – Sending an object with Next.js and it is showing up as undefined on the page I am sending it to

I am sending an object called footprintsData from my question screen to a result screen as shown below: const footprintsData = { carFootprint: roundedCarFootprint, electricityFootprint: roundedElectricityFootprint, gasFootprint: roundedGasFootprint, commuteFootprint: roundedCommuteFootprint, airTravelFootprint: roundedAirTravelFootprint, totalFootprint: parseFloat(totalFootprint.toFixed(2)), }; router.push({ pathname: "/results", query: {…

VIEW QUESTION

Problem with Nested Navigators in React Native: The action 'NAVIGATE' with payload … was not handled by any navigator

I am currently using a bottom Tab navigator with a Stack navigator nested inside of it. Tabs.tsx: <NavigationContainer> <Tab.Navigator> // other screens here <Tab.Screen name="Stack" component={StackNavigator} /> </Tab.Navigator> </NavigationContainer> StackNavigator.tsx: const StackNavigator = () => { return ( <Stack.Navigator> <Stack.Screen…

VIEW QUESTION
Back To Top
Search