Closed ceremcem closed 9 years ago
if there is multiple widgets which has exact same declaration, then set-ractive-var function can not set each one correctly:
set-ractive-var
{{>thermometer {pin_name: 'test-pin'} }} {{>thermometer {pin_name: 'test-pin'} }} {{>thermometer {pin_name: 'test-pin'} }} {{>thermometer {pin_name: 'test-pin'} }}
works wrong (same value is set to ractive's actor_id variable) but the following works correctly:
actor_id
{{>thermometer {pin_name: 'test-pin', dummy_var: '123'} }} {{>thermometer {pin_name: 'test-pin', dummy_var: '124'} }} {{>thermometer {pin_name: 'test-pin', dummy_var: '125'} }} {{>thermometer {pin_name: 'test-pin', dummy_var: '126'} }}
works correctly, because last four declaration has different keypaths.
Problem is discussed here: https://github.com/ractivejs/ractive/issues/2062#issuecomment-139078828
if there is multiple widgets which has exact same declaration, then
set-ractive-var
function can not set each one correctly:works wrong (same value is set to ractive's
actor_id
variable) but the following works correctly:works correctly, because last four declaration has different keypaths.