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

Wrap ComponentContext with RouterContext #59

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

arkivanov
Copy link
Contributor

@arkivanov arkivanov commented Sep 21, 2023

Please choose either this PR or #58.

Copy link
Owner

@xxfast xxfast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 🙌 Thank you very much for the contribution

@xxfast xxfast merged commit a8fe6de into xxfast:main Sep 21, 2023
4 checks passed

return remember { Router(navigator = navigator, stack = childStackState) }
return remember {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arkivanov Do you think we need to key this remember with our key

return remember(key) {
    routerContext.getOrCreate(key = keyStr) { .. }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you can use keyStr, the same as for getOrCreate

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