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

Fix allow_duplicate output with clientside callback. #2471

Merged
merged 4 commits into from
Mar 28, 2023
Merged

Fix allow_duplicate output with clientside callback. #2471

merged 4 commits into from
Mar 28, 2023

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented Mar 20, 2023

Fix #2467

# Conflicts:
#	CHANGELOG.md
#	tests/integration/test_patch.py
prevent_initial_call=True,
)
app.clientside_callback(
"function onClickTwo(){ return 'click2';}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a more comprehensive test be to have an anonymous function? To test the uuid.uuid4.hex() thing as above. So like () => { return 'click2' }?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, the function name is actually discarded/unimportant when the script inline, I had fixed on the rendered first but the test still failed so I tried a few thing like adding name on the function to found out where it was getting the name and replaced with the hex.

Copy link
Member

@chriddyp chriddyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃🏼 once my comment is considered

@T4rk1n T4rk1n merged commit 1bb7a74 into dev Mar 28, 2023
@T4rk1n T4rk1n deleted the fix-2467 branch March 28, 2023 21:14
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.

[BUG] allow_duplicate not working with clientside_callback
2 participants