refactor(frontend): fetch to axios #22
No reviewers
Labels
No labels
automerge
backend
bug
ci/tooling
dependencies
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
invalid
question
research
test-dependencies
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: marc/rotini#22
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/fetch-to-axios"
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?
Initially,
fetch
had been chosen because it didn't require extra dependencies. Pain points accumulated during development, especially around making sure testing remained somewhat elegant and didn't grow out of proportion in complexity.After adding the upload, fetch and deletion flows, toying with the "file download" path opened up a new can of worms that made
axios
more attractive. Now that it's past v1, it feels more stable and the mock utility for tests is convenient.axios-mock-adapter
will ideally be replaced by a smaller, handrolled mock at some point, but for now, the dependency feels acceptable.