playground-auth icon indicating copy to clipboard operation
playground-auth copied to clipboard

Loading indicator

Open Tobbe opened this issue 4 years ago • 3 comments

On my computer/Internet connection it takes a while for the providers to start loading. Could we add some sort of loading indicator?

playgroundauth

Tobbe avatar Apr 21 '21 06:04 Tobbe

I've also been thinking about this. It doesn't load quite as slow for me but there is certainly a delay.

I've been trying to wrap my head around if there is a way to use RW cell functionality but pull from the local providers.js file. We could then use a version of the Tailwind animate-pulse as the loader.

lunchbreakdev avatar Apr 21 '21 12:04 lunchbreakdev

I've been trying to wrap my head around if there is a way to use RW cell functionality but pull from the local providers.js file.

I'm pretty sure there isn't 🙁

Tobbe avatar Apr 21 '21 12:04 Tobbe

I think the delay is in part to the way each provider wraps the element and I likely introduced it with the idea of adding the auth status.

Or it is a delay in the isAuthenticated() for each as it makes the check with each. But that still seems odd.

Maybe prerender https://redwoodjs.com/docs/prerender ... is there a withLoading property?

Note: preprender improvements will only be seen in prod, not dev, so if we PR these I'll approve teh previews on Netlify to deploy and can test there.

dthyresson avatar Apr 21 '21 13:04 dthyresson