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

feat: Add useConditionalCallback hook #993

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Nov 6, 2024

  • Takes a condition that if it is false, will return undefined instead of the callback
  • Useful for the pattern where we're wrapping a callback but don't want to pass a callback to a child if we didn't receive a callback

- Takes a condition that if it is false, will return undefined instead of the callback
- Useful for the pattern where we're wrapping a callback but don't want to pass a callback to a child if we didn't receive a callback
@mofojed mofojed self-assigned this Nov 6, 2024
@mofojed mofojed requested review from a team and vbabich and removed request for a team November 7, 2024 15:00
@mofojed mofojed merged commit 512fab2 into deephaven:main Nov 7, 2024
16 checks passed
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