P粉8521147522023-08-15 09:42:15
If you want to force an action to be triggered, you can use the "post"
method instead of "get"
useEffect(() => { if (!standardSelected) return; clearTimeout(sectionListTimeOutId); const clearTimeoutId = setTimeout(() => { console.log('>>> use submit called'); submit({ standard_id: standardSelected }, { method: 'post' }); }, 1000); setSectionListTimeOutId(clearTimeoutId); }, [standardSelected]);