Jasonette / Jasonette/JASONETTE-iOS

Timer starts before action was invoked

Open
#193 0 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

Following [doc](https://docs.jasonette.com/web/), add an action to html, but this time starting a timer then rendering another template to show the timer (like The Simpsons example).
Add a back button on this timer template to stop the timer and show (go back to) first template.

On Android, WHEN YOU CLICK you start the timer (normal behavior).
On iOS, timer starts as soon as the view (first template) is loaded.
Even more, clicking to stop the timer doesn't stop (reset) it on iOS only (at least the emulator).

PS: I have the timer action in a #each list (first template), so may be there are multiple started timers with the same name and stopping one doesn't stop the others.

Only fix is to $reload the view when being at first template (reloading the action) to reset the timer, then visit the 2nd template (timer already started). $reloading at 2nd template doesn't fix the timer.

Contributor guide

Open the contributing guide

Research direction

Start with the linked web documentation and reproduce the timer flow: the first template starts a timer, the second renders it, and the back button stops it. Compare Android's click-triggered behavior with iOS view-load behavior, including the timer inside an #each list; done means iOS starts and stops the timer at the corresponding user actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.