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

Use Dash's create_callback_id to get the callback id #163

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

RenaudLN
Copy link
Contributor

@RenaudLN RenaudLN commented Feb 4, 2025

The current public_callback decorator wasn't working well in some cases, including when using dash-extension's DashProxy.

This PR leverages Dash's internal create_callback_id to retrieve the callback id to be marked as public.

Also copied test updated from #162 as this PR supersedes the fix in there.

@RenaudLN
Copy link
Contributor Author

RenaudLN commented Feb 9, 2025

@alexcjohnson if you could have a quick look at this one as well 🙏

@ndrezn
Copy link
Member

ndrezn commented Feb 10, 2025

Hey Renaud, I'll have the team take a look as this. For future reference feel free to tag myself or @gvwilson if you have any questions on GH.

That being said as this adds new functionality to the package I am not immediately sure whether we will accept this PR.

@RenaudLN
Copy link
Contributor Author

Hey @ndrezn this isn't new functionality, it's a fix. The public_callback doesn't work in a number of cases, including when some clientside callbacks have been defined prior.

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

Successfully merging this pull request may close these issues.

2 participants