-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Retry to resolve an element #81
Conversation
@rickychilcott care to weigh in? I think this should do it... |
I've got this pulled up and will take a look in the morning. |
we could also try exponential backoff like in rails/rails@cc9a9e8 thanks @leastbad for the suggestion! |
I'm sorry for failing to review this. It seems like a very reasonable solution and doesn't feel like it too invasive of a solution. RE: exponential backoff. It's a good point. Perhaps 3 seconds is enough for a small partial, but it could be a massive partial that is really taking longer to generate, and continuing to hammer every X seconds would be counterproductive. It would significantly complicate the code, but as you link to or perhaps this implementation it might not be too bad. Is there anything I can do to wrap this up? I now have approval to start implementing SR into my application slowly, and futurism is going to be a big part of performing the perceived performance of the application. This will be quite helpful. |
That's great news, Ricky! |
Thank you @rickychilcott ! I will give your link a thorough read. I hope that with exponential backoff we can craft a config-less solution. Will revisit this later this week. |
05d360a
to
91f2d5e
Compare
91f2d5e
to
602ee1e
Compare
👏 👏 👏 This looks good! |
Cool will cross check tomorrow and merge |
Enhancement
Description
Wrapped the
dispatchAppearEvent(entry, observer)
in asetInterval
, which is cleared upon disconnection. Note that there is a bit of a shotgun surgery here, which at the moment I don't know to avoid - but it's only 3 instances.Also yet TODO is the configuration of the interval time. I suggest specifying this via a custom element attribute, which could be passed in by the
helper
.Fixes #75
Why should this be added
Resilience to network conditions etc.
Checklist