fix: increment vnode._original to make sure the component is re-ren…#2126
fix: increment vnode._original to make sure the component is re-ren…#2126
vnode._original to make sure the component is re-ren…#2126Conversation
🦋 Changeset detectedLatest commit: 1653b8f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughThis change bumps vnode ORIGINAL in runWithForce to force re-renders when updateGlobalProps runs (including non-component root vnodes), adds tests covering updateGlobalProps lifecycles, and adds a changelog entry documenting the patch. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
CodSpeed Performance ReportMerging this PR will degrade performance by 5.35%Comparing Summary
Performance Changes
Footnotes
|
Web Explorer#7432 Bundle Size — 383.56KiB (0%).1653b8f(current) vs d1b0d9e main#7429(baseline) Bundle metrics
|
| Current #7432 |
Baseline #7429 |
|
|---|---|---|
154.71KiB |
154.71KiB |
|
35.05KiB |
35.05KiB |
|
0% |
0% |
|
8 |
8 |
|
8 |
8 |
|
237 |
237 |
|
16 |
16 |
|
2.99% |
2.99% |
|
4 |
4 |
|
0 |
0 |
Bundle size by type no changes
| Current #7432 |
Baseline #7429 |
|
|---|---|---|
252.66KiB |
252.66KiB |
|
95.85KiB |
95.85KiB |
|
35.05KiB |
35.05KiB |
Bundle analysis report Branch p/fix-globalProps Project dashboard
Generated by RelativeCI Documentation Report issue
|
|
||
| const c = oldVNode[COMPONENT]; | ||
| if (c) { | ||
| if (vnode[ORIGINAL] != null && oldVNode[ORIGINAL] === vnode[ORIGINAL]) { |
There was a problem hiding this comment.
| if (vnode[ORIGINAL] != null && oldVNode[ORIGINAL] === vnode[ORIGINAL]) { | |
| if (vnode !=== oldVNode && vnode[ORIGINAL] != null && oldVNode[ORIGINAL] === vnode[ORIGINAL]) { |
There was a problem hiding this comment.
I think we can remove line 11-22 if we do this.
lynx-stack/packages/react/runtime/src/lynx/runWithForce.ts
Lines 11 to 22 in 62ef34d
62ef34d to
1653b8f
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. If this pull request is still relevant, please leave any comment (for example, "bump"). |
#2125
Summary by CodeRabbit
Bug Fixes
Tests
Changelog
✏️ Tip: You can customize this high-level summary in your review settings.
Checklist