Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using method forwarding creates elements for up to 9 times #27

Closed
lemonadee71 opened this issue May 31, 2022 · 0 comments
Closed

Using method forwarding creates elements for up to 9 times #27

lemonadee71 opened this issue May 31, 2022 · 0 comments
Assignees
Labels
bug Something isn't working priority Work on immediately

Comments

@lemonadee71
Copy link
Owner

lemonadee71 commented May 31, 2022

When I replace this

html`
<div is-list keystring="id">
  ${project.$lists((lists) => lists.map(List))}
</div>
`

with

html`
<div is-list keystring="id"> 
  ${project.$lists.map(List)}
</div>
`

It creates List for 8-9 times each but mounts once. Nested is-list components are not affected, just the direct component passed with the hook.

@lemonadee71 lemonadee71 added the bug Something isn't working label May 31, 2022
@lemonadee71 lemonadee71 self-assigned this May 31, 2022
@lemonadee71 lemonadee71 added the priority Work on immediately label May 31, 2022
lemonadee71 added a commit to lemonadee71/todo that referenced this issue Jun 1, 2022
@lemonadee71 lemonadee71 added the needs investigation Further information is requested label Jun 14, 2022
@lemonadee71 lemonadee71 changed the title Using method forwarding rerenders for up to 9 times Using method forwarding creates elements for up to 9 times Jun 15, 2022
@lemonadee71 lemonadee71 removed the needs investigation Further information is requested label Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority Work on immediately
Projects
None yet
Development

No branches or pull requests

1 participant