This adds some fetch state functionality which in some cases is needed/handy for async logic
E.g
const handleSelectionChanged = async (selectedValue, stopId) => {
const { pending } = await eotlStore.fetchPatch(`/touritems/${stopId}`, { state: selectedValue })
if (!pending) {
globalStore.updateTourStatus()
}
}
This is just for the patch action now but is probably nice to have it on the others also
This adds some fetch state functionality which in some cases is needed/handy for async logic
E.g
```
const handleSelectionChanged = async (selectedValue, stopId) => {
const { pending } = await eotlStore.fetchPatch(`/touritems/${stopId}`, { state: selectedValue })
if (!pending) {
globalStore.updateTourStatus()
}
}
```
This is just for the patch action now but is probably nice to have it on the others also