Skip to content

Fix allow_duplicate output with clientside callback. - #2471

Merged
T4rk1n merged 4 commits into
devfrom
fix-2467
Mar 28, 2023
Merged

T4rk1n merged 4 commits into
devfrom
fix-2467

Conversation

@T4rk1n

@T4rk1n T4rk1n commented Mar 20, 2023

Copy link
Copy Markdown
Contributor

Fix #2467

@T4rk1n
T4rk1n requested a review from alexcjohnson as a code owner March 20, 2023 18:20
T4rk1n added 2 commits March 20, 2023 14:38
# Conflicts:
#	CHANGELOG.md
#	tests/integration/test_patch.py
Comment thread tests/integration/test_patch.py Outdated
prevent_initial_call=True,
)
app.clientside_callback(
"function onClickTwo(){ return 'click2';}",

Copy link
Copy Markdown
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
Copy Markdown
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.

@chriddyp chriddyp left a comment

Copy link
Copy Markdown
Member

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