skip to Main Content

Mongodb – Infinite XHRhttpRequest in ReactJS

Let's start with the client side, here's the code //sender function const getUserMessages = async () => { try { //new localhost with 'messages' const response = await axios.get('http://localhost:8000/messages', { params: {userId: userId, correspondingUserId: clickedUserId} }) setUserMessages(response.data) } catch (error){…

VIEW QUESTION

Passing data via {route} between two screens with component in between – React native

Please bear with a newbie at ReactNative. Here is my main screen. export default function App() { const Stack = createNativeStackNavigator(); return ( <NavigationContainer> <Stack.Navigator> <Stack.Screen name="CategoryScreen" component={CategoriesScreen} /> <Stack.Screen name="MealsOverviewScreen" component={MealsOverView} /> </Stack.Navigator> </NavigationContainer> ); } and then in…

VIEW QUESTION
Back To Top
Search