You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey again @ctrlplusb, I was wondering if you think there should be a way for a job to run only once on the server (and not again on the client). Testing with some pages, I realized that for search engines, I was getting the LoadingComponent even when the job was completed on the server. It seems that code does get into withJob and the jobState.completed is not set to true on the client. So, it needs one additional pass to process some custom logic that I provided in the workDefinition to ensure that the jobState is considered complete.
Thoughts on if it would be possible to remember jobState from the server when evaluating the work on client?
The text was updated successfully, but these errors were encountered:
That is not a problem on the server-side but on the client side, it will try to re-evaluate the work definition, which means there will be a render of just the loading (at the time of mount). Unfortunately, that breaks the experience for SEO, since that's what the crawler sees even though it gets fixed in the next render phase.
I think the best way to fix this bug would be to consistently register job result regardless of whether it is synchronous or asynchronous (not sure about the side-effects of that)
Hey again @ctrlplusb, I was wondering if you think there should be a way for a job to run only once on the server (and not again on the client). Testing with some pages, I realized that for search engines, I was getting the LoadingComponent even when the job was completed on the server. It seems that code does get into
withJob
and thejobState.completed
is not set to true on the client. So, it needs one additional pass to process some custom logic that I provided in theworkDefinition
to ensure that thejobState
is consideredcomplete
.Thoughts on if it would be possible to remember
jobState
from the server when evaluating thework
on client?The text was updated successfully, but these errors were encountered: