Skip to content

Eager navigation and load handling of cancel #129

@johankool

Description

@johankool

Describe the bug
When you navigate back before the loading has finished, the behavior of the app gets broken.

To Reproduce

  1. In 03-Navigation-Lists-NavigateAndLoad.swift on line 46 set the delay a bit longer (e.g. 3 seconds)
  2. Run the demo
  3. Select "Load optional counter that starts from 1"
  4. Navigate back from the screen before the counter appears
  5. Now try to open the same counter again or any of the others

Observed behavior
Tapping same counter is unresponsive. Tapping other counter immediately navigates back.
Screen Recording 2020-05-24 at 11.36.09.zip
(Unfortunately GitHub won't let me upload screen recording unzipped.)

Expected behavior
Being able to use the demo as if you had waited until the counter had appeared.

Environment

  • Xcode 11.5
  • iOS 13.5
  • Simulator for iPhone SE (2nd generation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions