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: ContextMap replaced with ComponentApi #160

Merged
merged 1 commit into from
Jul 9, 2023
Merged

Conversation

ncpa0cpl
Copy link
Collaborator

@ncpa0cpl ncpa0cpl commented Jul 9, 2023

Replaced the ContextMap argument that was available to to all components with a new ComponentApi. Contexts can still be accessed via the new API, via the ComponentApi.ctx property. Additionally the new api provides a render method, which can be used similarly to the renderToHtml, but the context's data will get forwarded to the rendered components.

@ncpa0cpl ncpa0cpl merged commit e21d6a3 into master Jul 9, 2023
@ncpa0cpl ncpa0cpl deleted the feat/component-api branch July 9, 2023 18:38
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.

1 participant