5
1
Fork
You've already forked core
0

feature/extend-fetchPatch-api #10

Merged
basebuilder merged 6 commits from feature/extend-fetchPatch-api into main 2024年06月05日 17:35:49 +02:00

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
basebuilder deleted branch feature/extend-fetchPatch-api 2024年06月05日 17:35:50 +02:00

Cool. LGTM @Esthetech 👍 thanks!!

Cool. LGTM @Esthetech 👍 thanks!!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eotl/core!10
Reference in a new issue
eotl/core
No description provided.
Delete branch "feature/extend-fetchPatch-api"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?