Help us to manage our issues by answering the following:
- 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.
- Can you reproduce the issue?
https://plnkr.co/edit/ZwmBRx6LtUEBz1OXCu7K?p=preview
- On which browser/OS does the issue appear?
N/A
- Which version of Riot does it affect?
Starting with 3.10.0 and commit 244cbb5
- How would you tag this issue?
Help us to manage our issues by answering the following:
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.
https://plnkr.co/edit/ZwmBRx6LtUEBz1OXCu7K?p=preview
N/A
Starting with 3.10.0 and commit 244cbb5