Skip to content

Nested loops on same variable (may) cause inifinite redraws #80

Description

@narenranjit
<div data-f-foreach="somearray">
   .. stuff --
   <div data-f-foreach="somearray"> </div>
</div>

This seems to cause a loop of constant updates as the 'child' asking for the same data as the parent triggers the parent to redraw.

Fix by implementing something like shouldComponentUpdate from React (compare data before re-rendering).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions