Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

force update function component after fetch data second time

const [, updateState] = React.useState();
const forceUpdate = React.useCallback(() => updateState({}), []);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #force #update #function #component #fetch #data #time
ADD COMMENT
Topic
Name
4+1 =