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

Fix reconciler #852

Merged
merged 4 commits into from
Feb 10, 2018
Merged

Fix reconciler #852

merged 4 commits into from
Feb 10, 2018

Conversation

theKashey
Copy link
Collaborator

This fixes beta.21, which were not broken - the "issue" always were always hidden inside.

Fixes:

  • Random parasite warnings (bug in beta.21 #843). Reason: while rendering div hot-render pass thought element from the old instance, "using" the old children of nested components. Thus is uses and updates components which does not exists anymore.
  • Parasite warnings from async-loaders (bug in beta.21 #843). Not register increment generation only on real replacement. Ie no more hot-render after async-load.
  • Hot-Reconciler not working if you change child count. Thats is actually still the case - it stops if count is different (PR welcomed), but should work normaly if child is just depends on prop, ie `{ flag && }. Beforewards we cleanapp all nulls from the children list, and still doing it, but after the first check.

I've add some tests to cover this cases and manually tested on our examples - all good.


export const doesSupportClasses = (function() {
try {
eval('class Test {}')
indirectEval('class Test {}')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI related change. Rollup dislike eval.

@fnpen
Copy link

fnpen commented Feb 10, 2018

Nice! I'm waiting this fix.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants