Skip to content

Frames with loading lazy not working when src changes after restoration visit #886

Open
avo-hq/avo
#3160
@night91

Description

I have been having troubles with frames with lazy loading after a restoration visit. It doesn't load when src changes (using a link with a data-turbo-frame). Removing the lazy in the inspector, it makes the frame to work again.

if (this.loadingStyle == FrameLoadingStyle.eager || this.hasBeenLoaded) {

if (this.loadingStyle == FrameLoadingStyle.eager || this.hasBeenLoaded) {

I have been digging into the code and after a restoration visit the loadSourceURL() doesn't get called because of loading lazy and the status of the hasBeenLoaded is false (lost value after the cache is loaded).

I am not sure about this because I don't have the full scope. Can someone verify this?

Version: v7.3.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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