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

recycle problem #887

Closed
hzmsrv opened this issue Jan 30, 2020 · 5 comments
Closed

recycle problem #887

hzmsrv opened this issue Jan 30, 2020 · 5 comments

Comments

@hzmsrv
Copy link

hzmsrv commented Jan 30, 2020

many times we want to catch an element or property need to waiting for firstUpdated() and then continue to next step.
it means Lit-element this framework will spend much time on waiting and useless render.

is there any way we don't need to render and then catch an element or property?

since the Polymer quick than Lit-element. when the <main> get the query propety changed it still on not Update state.

<iron-location path="{{path}}" query="{{query}}" hash="{{hash}}"> </iron-location>
<main query="{{query}}"/>
@justinfagnani
Copy link
Contributor

I don't have enough to go on here. Where's the waiting? What do you mean by catch? Can you put a demo on Stackblitz?

@web-padawan
Copy link
Contributor

I guess author means microtask timing and updateComplete 🤔

@kevinpschaaf kevinpschaaf changed the title recyle problem recycle problem Jan 30, 2020
@blikblum
Copy link

Probably, he is requesting the same as #643

Currently i use shouldUpdate for such task which occurs before render but is still not ideal because is async and kind of misuses the API. Example: https://github.com/blikblum/lit-element-mobx-realworld-example-app/blob/master/src/pages/profile-page.js#L82-L98

@kevinpschaaf
Copy link
Member

@hzmnet Per our CONTRIBUTING.md guidelines, we really need a clear reproduction case that demonstrates the issue you are having so that we can help you. Please try to add a repro case. Thanks.

@kevinpschaaf
Copy link
Member

Closing since we don't have a repro and are not sure how to proceed with helping. If there is still an issue, please re-open with a clear reproduction case. Thanks.

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

No branches or pull requests

5 participants