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

feat(component): add nonRerendering option to element factory #9295

Conversation

fundon
Copy link
Contributor

@fundon fundon commented Dec 24, 2024

Closes: AF-2018

In the pdf embed view scenario, we don't need to refresh like inline links.

Copy link
Contributor Author

fundon commented Dec 24, 2024


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fundon fundon marked this pull request as ready for review December 24, 2024 14:55
Copy link

codecov bot commented Dec 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 51.79%. Comparing base (7bd9809) to head (1847df3).
Report is 9 commits behind head on canary.

Files with missing lines Patch % Lines
...component/src/lit-react/lit-portal/lite-portal.tsx 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           canary    #9295      +/-   ##
==========================================
+ Coverage   51.76%   51.79%   +0.02%     
==========================================
  Files        2148     2147       -1     
  Lines       97630    97497     -133     
  Branches    16332    16284      -48     
==========================================
- Hits        50543    50499      -44     
+ Misses      45772    45686      -86     
+ Partials     1315     1312       -3     
Flag Coverage Δ
server-test 78.24% <ø> (+0.06%) ⬆️
unittest 30.90% <0.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

(elementOrFactory: React.ReactElement | (() => React.ReactElement)) => {
(
elementOrFactory: React.ReactElement | (() => React.ReactElement),
nonRerendering?: boolean
Copy link
Member

@EYHN EYHN Dec 25, 2024

Choose a reason for hiding this comment

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

Where do you use this argument

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-12-25 at 11 33 54

@fundon fundon closed this Dec 25, 2024
@fundon fundon deleted the fundon/12_24_add_nonRerendering_option_to_element_factory branch December 25, 2024 07:46
EYHN pushed a commit that referenced this pull request Dec 26, 2024
* removes `listeners`
* adds `notify` property into `LitReactPortal`
* adds `rerendering` argument  to element factory

Related to #9295 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants