Skip to content

Pool component creates the pool twice #2407

@clavis-magna

Description

@clavis-magna

the pool component is creating the pool of entities twice.

in init and in the update that runs after init.

if (oldData.mixin !== data.mixin || oldData.size !== data.size) (line 43) is returning true and triggering a second pool to be created. (I think because oldData has no value on this first run of update?)

  • A-Frame Version: 0.5.0, 0.4.0
  • Platform / Device: desktop browser tested
  • Reproducible Code Snippet or URL: aframe/examples/test/pool (checking the pages html will confirm 20 'laser' entities instead of 10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions