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

Optional props on useBlocklyWorkspace #101

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Conversation

elliottcarlson
Copy link
Contributor

Both toolboxConfiguration and onWorkspaceChange are not required props on the component; and do not hinder the functionality of useBlocklyWorkspace if they are made optional.

Use case for me is the scenario of not wanting to use a toolbox (and using an external component to manage it); onWorkspaceChange is probably a recommended thing to include, but should not be required.

Both toolboxConfiguration and onWorkspaceChange are not required props on the <BlocklyWorkspace /> component; and do not hinder the functionality of useBlocklyWorkspace if they are made optional.

Use case for me is the scenario of not wanting to use a toolbox (and using an external component to manage it); onWorkspaceChange is probably a recommended thing to include, but should not be required.
@nbudin
Copy link
Owner

nbudin commented Oct 9, 2023

Hi @elliottcarlson, this seems reasonable to me. I'll release this as a new minor version. Thanks for the patch!

@nbudin nbudin merged commit e549aa9 into nbudin:main Oct 9, 2023
2 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