pixiebrix-extension
pixiebrix-extension copied to clipboard
Refactor fetch deployment mod definitions axios call to use RTK Query
User Story
As a frontend developer, I an API call to fetch deployment mod definitions to use RTK, so we get the RTK query benefits (caching) and consistency with the rest of the codebase
Motivation
RTK query is better than using axios directly
Acceptance Criteria
- Update this axios call to use RTK query:
- Note, we need to keep the
fetchDeploymentModDefinitionsfunction because it's used in the background script, seedeploymentUpdater.ts(unless we somehow figure out how to use RTK query in the bg script)
, so we get the RTK query benefits (caching
As a reminder, we still get browser-level caching in the current world
This issue will be closed in 7 days unless the stale label is removed, or a comment is added to the issue.
This issue was closed because it has been stale for 7 days with no activity.