Skip to content

Commit c181c3d

Browse files
committed
Add a note about orderedComputed and cycles.
1 parent 1fa4948 commit c181c3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ This update to Polymer includes some new [global settings](https://polymer-libra
9595

9696
However, with `orderedComputed` enabled, the computed properties would have been previously sorted into [`computeB`, `computeC`], so updating `a` would cause them to run specifically in that order.
9797

98+
If your component's computed property graph contains cycles, the order in which they are run when using `orderedComputed` is still undefined.
99+
98100
**Should I use it?** The value of this setting depends on how your computed property functions are implemented. If they are pure and relatively inexpensive, you shouldn't need to enable this feature. If they have side effects that would make the order in which they are run important or are expensive enough that it would be a problem to run them multiple times for a property update, consider enabling it.
99101

100102
- `fastDomIf`

0 commit comments

Comments
 (0)