pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

Refactor fetch deployment mod definitions axios call to use RTK Query

Open johnnymetz opened this issue 11 months ago • 1 comments

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 fetchDeploymentModDefinitions function because it's used in the background script, see deploymentUpdater.ts (unless we somehow figure out how to use RTK query in the bg script)

johnnymetz avatar Mar 06 '24 20:03 johnnymetz