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

Sub-components of a simple list are regenerated after component containing simple list is mounted #3602

Open
bytecode1024 opened this issue Apr 20, 2020 · 0 comments

Comments

@bytecode1024
Copy link

@bytecode1024 bytecode1024 commented Apr 20, 2020

Describe the bug

I found that if an item of a simple list contains sub-components, they were regenerated after the component containing the list is mounted.

Is this a bug or simply a misuse of a simple list?

To Reproduce

Steps to reproduce the behavior:

  1. Include a simple list in application
  2. Add a component to a simple list item
  3. Check creation, mounting and destruction of component added to simple list
  4. The component is regenerated after the application is mounted

Expected behavior

No regeneration of simple list sub-components.

Actual Behavior

Sub-components of a simple list is regenerated after component containing the list is mounted.

Console output

Here (see jsfiddle.net) with a simple list and not a simple list.

Sub-component item in list is a slider.

Slider id is generated on slider creation.

Only the simple list regenerates its sub-component after app is mounted.

App created
SimpleList created
Slider created SimpleList
NotSimpleList created
Slider created NotSimpleList 996901c5a9
Slider mounted SimpleList 3393885ed0  // sub-component will be regenerated
SimpleList mounted
Slider mounted NotSimpleList 996901c5a9
NotSimpleList mounted
App mounted
Slider created SimpleList ee836662b0
Slider destroyed SimpleList 3393885ed0 // sub-component is destroyed
Slider mounted SimpleList ee836662b0

And Thank You for your Great Framework7!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.