Skip to content

Opts are being shared across all tag instances #2613

@fabien

Description

@fabien

Help us to manage our issues by answering the following:

  1. Describe your issue:

If you are passing an object to mount('*', { ... }) this object is now shared by reference with all tags.

This is a undesirable side-effect of the small change, introduced by #2581 - and I would say it's a bug, or at least a breaking change. It trades a fix for an 'edge case' situation (why would the object passed be an observable by itself, and not just a member of a plain object that is being passed down?), for a far more far-reaching issue that it now brings up.

  1. Can you reproduce the issue?

https://plnkr.co/edit/ZwmBRx6LtUEBz1OXCu7K?p=preview

  1. On which browser/OS does the issue appear?

N/A

  1. Which version of Riot does it affect?

Starting with 3.10.0 and commit 244cbb5

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance

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