The plugin that invalidates the executor result if another executor with a matching key is fulfilled or invalidated.
import invalidateByPeers from 'react-executor/plugin/invalidateByPeers';const executor = useExecutor('test', 42, [ invalidateByPeers(executor => executor.key === 'exact_executor_key')]); Copy
import invalidateByPeers from 'react-executor/plugin/invalidateByPeers';const executor = useExecutor('test', 42, [ invalidateByPeers(executor => executor.key === 'exact_executor_key')]);
The plugin that invalidates the executor result if another executor with a matching key is fulfilled or invalidated.