Skip to content

Array Property not converted to ReactiveArray when using ViewModel inside IFRAME #292

@arggh

Description

@arggh

This has to be the most absurd, far fetched edge case scenario this repository has seen so far, but here goes:

  1. I have a template that gets an array as prop. ViewModel converts the Array to a ReactiveArray like I'm used to.
  2. If I have the same template inside an IFRAME, rendered with same initial properties, the Array prop does not get converted to ReactiveArray.

Reproduction here: https://github.com/arggh/viewmodel-iframe-issue

I tried to make it as simple as possible while still explaining the issue properly. I had to include a router for the IFRAME to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions