Skip to content

library() doesn't use serverAction() helper like every other server method #321

@avinxshKD

Description

@avinxshKD

while refactoring server methods i noticed library() at line 154 in 6-server.js is doing its own toast + axios dance instead of using the serverAction() helper that literally every other method (build, debug, run, clear, stop, destroy) uses

means it's missing:

  1. the SET_LOGS dispatch to hide logs panel
  2. callback support (onSuccess param)
  3. consistent error handling pattern

just needs to be this.serverAction('post', url, null) or whatever payload makes sense. already extracted the helper, just forgot this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions