0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00
svelte/test/js/samples/computed-collapsed-if
Jacob Wright d2f8e472a5 Add support to computed and store for immutable structures
Adds optional performance support for apps using an immutable data structure such as redux. Adds the `immutable` boolean option for compile and an `immutable` option to store as well. When these options are used, computed will not recompute if the object has not changed. If your data structure is not immutable you should not use this as svelte cannot know if a mutation was made on objects.

This PR also adds support for Dates and NaN values so computed properties will not recompute if a date has not changed or a value did not change from NaN.

This closes out these issues:
* https://github.com/sveltejs/svelte/issues/1146
* https://github.com/sveltejs/svelte/issues/1161

This is my first PR for Svelte. Any feedback would be appreciated!
2018-02-08 21:04:29 -07:00
..
expected-bundle.js Add support to computed and store for immutable structures 2018-02-08 21:04:29 -07:00
expected.js update tests 2017-10-15 16:17:48 -04:00
input.html collapse consecutive if-statements with the same condition (#450) 2017-04-10 15:10:02 -04:00