Skip to content

*didExitVisibleState* getting called twice when pushing a view controller. #537

Open
@shashank-rps

Description

@shashank-rps

I was trying to do some stuff in didExitVisibleState but I noticed something weird when I try to push/present a new VC over an existing ViewController.

When I present a new ViewController the didExitVisibleState of the nodes is called correctly (i.e. only once), but when I push a ViewController the didExitVisibleState of the nodes is called twice. Is this expected?

This is reproducible in ASDKgram also. Attaching the zip of ASDK gram with modified code.
ASDKgram.zip

How to see this happening in ASDKgram example attached:

Launch the ASDKgram app. Click on any photo and see the logs. didExitVisibleState will be called twice for visible nodes when we try to push a new ViewController but works fine if we try to present any ViewController.

Changes done in ASDK code:
Whenever a user clicks on any photo I am sending a notification to PhotoFeedNodeController.m and it pushes a new VC over it.
[Refer line 127-135 in PhotoFeedNodeController.m]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions