score:0
Accepted answer
this can be an answer to your question :
change this :
addchannel({
variables: {
token: props.match.params.token
}
})
by :
useeffect(() => {addchannel({
variables: {
token: props.match.params.token
}
})}, []);
Source: stackoverflow.com
Related Query
- Infinite loop when working with react and react-firebase-hooks
- React State Infinite Loop with LocalStorage and DB
- Infinite loop error in React JS with useEffect and useState
- Infinite Loop caused when trying to fetch data and render it with React
- Problem with useInterval and react hooks - infinite loop
- React useEffect() Infinite loop with firebase and react-router
- I'm having an infinite loop with React hooks and I'm not sure why
- infinite loop with react.js and usemutation
- Infinite Loop in Test with React, Jest, Redux and Thunk
- How react Infinite Queries support with offset and limit
- Loop through array of file urls and download each one with React
- React useEffect with property as dependency makes infinite loop
- How do I loop an image carousel with React setState and setInterval?
- How can I keep my iterable value in loop with React and Redux?
- Is there any solution to mock react-query's useQuery and useMutation while working with react testing library
- Header flickering and freezing issue with material table (implemented with react window + react window infinite loader)
- Infinite useEffect loop when using Redux with React Hooks
- React Hooks infinite loop with Array
- React functional component with useSelector and useDispatch creates loop
- Why does this create an infinite render loop with React hooks?
- loop through an array and show single item at a time with dynamic time duration like setTimeout or SetInterval in react js
- How to do fetch with React Hooks; ESLint enforcing `exhaustive-deps` rule, which causes infinite loop
- UseEffect and useCallback still causes infinite loop in react project
- Avoiding infinite loop with ReactiveVar and Meteor.call inside of withTracker?
- React useState with an empty object causes an infinite loop
- React infinite loop in useEffect() with reducer
- React Typescript Infinite loop with render from function
- Infinite Loop of Images using React and Firestore Database - How do I get my data?
- React with Inversify makes useEffect infinite loop
- Infinite Scroll with react and api calls updating state
More Query from same tag
- Javascript clearInterval with interval Id doesn't work in react js
- Netlify hides the email field
- How to add hash symbol for href attribute
- Antd - validateFields only checks current form step
- ReactJs: Best Practice of defining event handlers
- import React Components to HTML
- Uploading downloadable URLs to Firestore. await on .map throw 'await' has no effect on the type of this expression
- React Router avoid unmounting
- React: How to set a component in 'active' state one at a time, and remove 'active' from all other component on click?
- simulating click from parent for the child in enzyme
- How to resolve promise in unit tests?
- Yup and Formik Validation in React
- disable buttons that are in the array
- implement an array of objects as attributes in one element in react jsx
- When the user logs in, logout button must show, but it's not showing instantly. Why is it happening?
- How do I play a sound in React
- How to pass array as result from one functional component to another in React
- using same props of caller component
- React/Redux Saga: Need to trigger a route change after user clicks button on form
- Create an axios call that will update state and then perform another one
- Meteor: Convert MongoDB server code for client side
- How can I put the data inside the MuiDataTable with these codes?
- How to build a disk status chart?
- How to create one Custom MUI Color palette for whole App?
- babel-node cannot find module - interpreting presets options as a filename?
- ReactJS: Expected property shorthand object-shorthand
- Skaffold and create-react-app stopped working
- Search box filtering does not return the searched result- React+ react-table+ filter
- How to fetch onChange from select value only when select ? is it possible without using useEfect?
- Running npm run eject to use css modules