Skip to content

Conversation

@tobihans
Copy link
Contributor

This closes #95.

The cause was a failing request for URL preview once the user is disconnected.

The current state of error handling with Remix doesn't allow to handle network errors manually when using useFetcher.

To workaround this, we detect if the user is online before loading the preview. In addition to that, errors are catched on the loader and an error response is returned.

/claim #95

Copy link
Member

@ericallam ericallam left a comment

Choose a reason for hiding this comment

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

Looks good! Made a few comments and once those are addressed this can be merged in

@ericallam
Copy link
Member

Thanks for the review @afzalsayed96! @tobihans do you think you could address the issues they raised in the PR?

@tobihans
Copy link
Contributor Author

Yes @ericallam, I just submitted the changes. To be honest, I'm new to React (long time Vue dev :-) ). But I'm learning a lot from @afzalsayed96 review. Do let me know if this resolves it. Thanks

@afzalsayed96
Copy link

afzalsayed96 commented May 25, 2023

Rest looks good. Please make sure this runs well as I haven't tested this myself.

@tobihans
Copy link
Contributor Author

Yes, it does, I have tested it. Below is an attached demo. Thanks

sample.mp4

@ericallam ericallam merged commit 5d310de into triggerdotdev:main May 25, 2023
@tobihans tobihans deleted the fix/app-crash branch May 25, 2023 08:35
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.

App crashes when you leave it open for a long time

3 participants