score:1
Accepted answer
try adding namesearch to the list of dependencies for usecallback:
const fetchdata = usecallback(async () => {
...
}, [license, namesearch]);
and make sure setnamesearch is actually used inside search.js
so that it will have a value.
Source: stackoverflow.com
Related Query
- React hook Search on button click not working
- React Routers not working on button click
- React Event Handler Button Click Not Working on First Click
- Button Click inside anchor tag not working in React Js Component
- why my react js button click event not working
- React Button Click Event Not working correctly
- TouchableOpacity and button not working in react native Modal?
- React hook useRef not working with styled-components and typescript
- Marker click event on react native maps not working in react ios
- Search not working with React material-table using remote data
- react native button style not working
- Replace of setState callback in react hook with useEffect hooks for complicated scenario not working
- Foundation, React throw "el.data(...).split is not a function" when click on toggle button
- React 16 Radio Button onChange not working
- React hook form - Register field not working
- Back button not working in react native navigation
- React Material-UI "Chip" component's 'x' (delete) button not working
- React Native Button onPress is not working
- React setState hook not working with useEffect
- I am trying to use the react hook useContext() but its not working
- Firebase auth and React Hook - returning function from hook not working
- button onClick methods not working in react app
- React hook is not working from event handler
- OnClick not working when rendering React button on a custom dialog
- How to delete objects from react state hook array with a button click
- File Uplaod not working on Button click material-UI V1 ReactJs
- React antd table reset search box input on button click
- react hook useEffect to fetch data on button click (typescript)
- Redirect in React Router not working when I click from Users to Post
- React Button Click Event Update State Value But Not Reflected on Button Text
More Query from same tag
- Standalone APIService needs access to redux or NextJS ctx for getting token
- Very high memory/cpu usage while testing React components with Karma in Chrome
- How to iterate through array of objects and execute a request using react?
- Using Concurrently with React and Flask
- how can i request from the api multiple times
- Too many re-renders. React limits the number of renders to prevent an infinite loop. React Hook and ReactJS
- React - Uncaught ReferenceError: require is not defined
- Change <Route> component for "/" when logged in (React)
- How to use slideToggle function in React?
- React Router v3 - IndexRoute not working in Google Cache
- Unknown error acquiring position GeolocationPositionError code 2 - Firefox Linux Mint
- Isolating a function when data is mapped in react
- Using Microsoft Authentication Library MSAL with PnPjs
- Reading firestore data via react hooks
- Styling child components dynamically in react
- Load html <img> with jwt-token included
- Unable to pass function in props to a Component | React
- Reflux avoid hitting server every time, when data cached locally
- React-select shows keyboard when is toggled
- Ract FontAwesome ES6 usage
- filter value from array (object) react
- Run Redux action only when two other actions were triggered
- passing just the index clicked to the prop
- React-Redux state not updating as expected—am I mutating reducer arguments?
- Generate a unique id in react that persist
- React update checkbox from object value
- webpack less-loader not working
- React Run Error Can't resolve react-dom/client
- Geolocation API is available and enabled but does not give the coordinates
- How to make an styled ReacJs Header component sticky or fixed on top?