Jasonette / Jasonette/JASONETTE-iOS

$href action - request for error callback

Open
#353 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am using the $href action on the main view of my application. While testing with network connectivity off I noticed that href does not support an error callback if it can't reach the URL. In my case, I just want a simple way of handling the connectivity issue by displaying an alert or something similar. What actually happens is my customized error.json is brought into view. So, my application is not crashing, but it would be preferable to explicitly handle it vs. a global error handler.

Would an error callback on an $href action be something that could be easily added?

Thanks,
Hany

Contributor guide

Open the contributing guide

Research direction

Start at the $href action implementation and trace what happens when the URL cannot be reached, including how customized error.json is brought into view. Define the expected error-callback behavior and verify that an offline request can be handled locally instead of only through the global error handler.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.