Conversation

Freddy03h

@Freddy03hFreddy03h requested a review from cknitt January 15, 2025 17:02
@Freddy03h

Hi @cknitt, can I have a review? thanks :)

src/Stack.res Outdated
@@ -221,6 +217,10 @@ module Navigation = {

@send external pop: (navigation, ~count: int=?, unit) => unit = "pop"
Copy link
Member

Choose a reason for hiding this comment

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

With ReScript 11.1, we could get rid of the trailing unit everywhere.

src/Stack.res Outdated
@@ -221,6 +217,10 @@ module Navigation = {

@send external pop: (navigation, ~count: int=?, unit) => unit = "pop"

@send external popTo: (navigation, string) => unit = "popTo"
@send
external popToWithParams: (navigation, string, 'params) => unit = "popTo"
Copy link
Member

Choose a reason for hiding this comment

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

With ReScript 11.1, we could have a single binding with an optional param (without trailing unit) instead.

Choose a reason for hiding this comment

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

👍 🎉

@Freddy03hFreddy03h merged commit 816a664 into main Jan 19, 2025
2 checks passed
@Freddy03hFreddy03h deleted the upgrade-to-react-navigation-7 branch January 19, 2025 12:07
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.