Skip to content

Commit

Permalink
Add a note about orderedComputed and cycles.
Browse files Browse the repository at this point in the history
  • Loading branch information
bicknellr committed Apr 2, 2020
1 parent 1fa4948 commit c181c3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ This update to Polymer includes some new [global settings](https://polymer-libra

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.

If your component's computed property graph contains cycles, the order in which they are run when using `orderedComputed` is still undefined.

**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.

- `fastDomIf`
Expand Down

0 comments on commit c181c3d

Please sign in to comment.