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

Remove onInvalidAutomergeUrl from useBootstrap #268

Closed
wants to merge 1 commit into from

Conversation

neftaly
Copy link
Collaborator

@neftaly neftaly commented Jan 11, 2024

This PR removes onInvalidAutomergeUrl from useBootstrap.

The alternative is to use a react error boundary. From my understanding, this wasn't possible at the time.

@neftaly
Copy link
Collaborator Author

neftaly commented Jan 11, 2024

I would like to be able to do something like error instanceof InvalidAutomergeUrlError or similar in the error boundary, but this would require a separate PR.

@pvh
Copy link
Member

pvh commented Jan 24, 2024

I think this is a great idea but is technically a breaking change to the API. I've been hesitant to merge it because of that even though I suspect nobody will be using it.

@pvh
Copy link
Member

pvh commented Jan 24, 2024

Also, it's worth noting that passing in a bad AutomergeUrl should emit an error from the DocHandle so this is probably totally redundant anyway.

@pvh pvh marked this pull request as draft January 24, 2024 00:50
@pvh
Copy link
Member

pvh commented Apr 4, 2024

Moot with usebootstrap gone.

@pvh pvh closed this Apr 4, 2024
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