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

Initial implementation of contextuals #299

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Initial implementation of contextuals #299

merged 1 commit into from
Jan 18, 2024

Conversation

dphfox
Copy link
Owner

@dphfox dphfox commented Jan 18, 2024

Closes #112. This PR is an early implementation of the Contextual object, which stores values scoped in time per-coroutine. This allows for values to be transparently passed down the call stack without prop drilling (really, since Fusion uses plain Luau for this, it's more like 'parameter drilling' but whatever).

This PR does not intend on pushing out a finalised, documented version of Contextual - there are significant changes pending in #273 that make it a bad idea to do that. Instead, this is meant to get something out the door ready for later work.

@dphfox dphfox merged commit eb18b71 into main Jan 18, 2024
@dphfox dphfox deleted the contextuals branch January 18, 2024 16:57
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.

Add contexts to Fusion
1 participant