Skip to content

Add <NavigationProvider/> to <SeamProvider/>#138

Closed
mikewuu wants to merge 1 commit into
mainfrom
navigation-with-provider
Closed

Add <NavigationProvider/> to <SeamProvider/>#138
mikewuu wants to merge 1 commit into
mainfrom
navigation-with-provider

Conversation

@mikewuu
Copy link
Copy Markdown
Contributor

@mikewuu mikewuu commented May 12, 2023

  • Implicitly include <NavigationProvider/>
  • Allow onBack override at component level

Although this approach offers a better API, it doesn't work well when inside a modal because having <NavigationProvider/> at the top-level (included) will re-render all children (including the modal)

CleanShot.2023-05-12.at.23.16.26.mp4

@mikewuu mikewuu requested review from azat-co and razor-x as code owners May 12, 2023 14:17
@mikewuu mikewuu marked this pull request as draft May 12, 2023 14:18
@mikewuu mikewuu mentioned this pull request May 12, 2023
Copy link
Copy Markdown
Contributor

@azat-co azat-co left a comment

Choose a reason for hiding this comment

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

LGTM
just to confirm the onBack is optional, right?

@mikewuu
Copy link
Copy Markdown
Contributor Author

mikewuu commented May 12, 2023

just to confirm the onBack is optional, right?

Yep! I think the idea is to allow users to override it if they want.

Base automatically changed from navigation to main May 12, 2023 16:01
@razor-x
Copy link
Copy Markdown
Member

razor-x commented May 12, 2023

Closing in favor of #139

@razor-x razor-x closed this May 12, 2023
@razor-x razor-x deleted the navigation-with-provider branch May 25, 2023 21:30
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.

3 participants