Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-controller classes with empty state should not inherit from BaseController #4432

Open
1 of 4 tasks
MajorLift opened this issue Jun 18, 2024 · 0 comments
Open
1 of 4 tasks

Comments

@MajorLift
Copy link
Contributor

MajorLift commented Jun 18, 2024

Current controller classes with empty state

Requirements

  • Should not inherit from BaseControllerV1 or BaseController.
  • Should not use the Controller suffix in its name.
  • Types for ControllerState, ControllerGetStateAction, ControllerStateChangeEvent should not be defined or exported.
  • Should accept messenger as a constructor option.
  • messenger should be defined with allowlists that enable the class to make all communications with other controller classes that were previously supported.
  • Should not accept any class method callbacks as constructor options. Messenger actions/events should be used to communicate instead.
  • In some cases, methods that implement API interactions should be extracted into a dedicated service class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant