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

[Feature request] Add ability to register a custom handler #108

Open
mansona opened this issue May 25, 2021 · 1 comment
Open

[Feature request] Add ability to register a custom handler #108

mansona opened this issue May 25, 2021 · 1 comment

Comments

@mansona
Copy link
Member

mansona commented May 25, 2021

Howdy folks 👋

I've seen a few people suggest custom handlers in issues, and some of them are good ideas but I can understand the reluctance to add more and more entries to a global switch case that has all possible handlers.

I was wondering if you were open to a modification to that code path that allowed you to specify a customHandler so that we could implement our weird and wonderful ideas as either a simple function passed in as the handler value, or some other way that might allow you registerDeprecationHandler in an addon so that it would work automatically?

I can see a few ways that I might implement something like this but I thought it was better to ask before spending any time on it 👍

@mixonic
Copy link
Member

mixonic commented May 27, 2021

@mansona What is an example use case that isn't satisfied by using registerDeprecationHandler to set up your own?

Or perhaps you ran into #113 ?

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

No branches or pull requests

2 participants