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

Show meaningful error view when response type is not swiftui #337

Open
bcardarella opened this issue Aug 30, 2024 · 1 comment
Open

Show meaningful error view when response type is not swiftui #337

bcardarella opened this issue Aug 30, 2024 · 1 comment
Assignees

Comments

@bcardarella
Copy link

If someone forgets to add use MyAppNative, :live_view to their LiveView the application will respond with a html response. We currently just spin in this event. We cannot capture this issue on the server because our code isn't added at all to the LiveView but we can capture this on the client to provide a meaningful explanation of what is happening and push the developer in the correct direction.

/cc @dbii

@bcardarella bcardarella transferred this issue from liveview-native/liveview-client-swiftui Feb 27, 2025
@bcardarella
Copy link
Author

We should handle this in Core where if the response content-type from the server doesn't match the client's content-type request it will provide a meaningful error.

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

No branches or pull requests

2 participants