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

Hide retry button in ErrorView if no handler is given #197

Merged
merged 7 commits into from
Mar 22, 2024

Conversation

olivaresf
Copy link
Member

In some instances, it's not desirable for the visitable view controller to present a Retry button when the visit fails. This PR allows a nil handler to be passed to ErrorView. This will hide the retry button.

@olivaresf olivaresf requested a review from joemasilotti March 20, 2024 02:49
@joemasilotti
Copy link
Member

Good idea, @olivaresf! I opened PR #198 to remove an unneeded capture of self. I also spread the rename of retryHandler across the codebase but would be fine if you didn't want to introduce that in this PR.

@olivaresf olivaresf merged commit 0b5d738 into turbo-navigator Mar 22, 2024
1 check passed
@olivaresf olivaresf deleted the opt-into-retry branch March 22, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants