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

Add new event: onResourceStateChange #3305

Closed
1 task done
TracerDS opened this issue Jan 30, 2024 · 2 comments
Closed
1 task done

Add new event: onResourceStateChange #3305

TracerDS opened this issue Jan 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@TracerDS
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Following #3304 there should be an event for tracking state changes of all resources. onResourceLoadStateChange only triggers for load changes (aka removing and creating a resource)

Describe the solution you'd like

onResourceStateChange would trigger when a resource has been stopped, started or refreshed

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@TracerDS TracerDS added the enhancement New feature or request label Jan 30, 2024
@R4ven47
Copy link
Contributor

R4ven47 commented Jan 30, 2024

How is this event going to behave any different than onResourceStart/onResourceStop?

@TracerDS
Copy link
Contributor Author

How is this event going to behave any different than onResourceStart/onResourceStop?

it would be much easier to communicate between one event handler and 2 separate event handlers.
With that function you will have more flexibility with managing your resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants