feat: Add global loading indicator to top nav #176
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
According to @brophdawg11 's suggestion and issue #163 , I added this POC to the
root.tsx
.In the example below I added a
await sleep(2000)
to the blog loaders and the theme switch action to see the complete animation and the places where the progressbar stops in both slow actions and loaders.This was taken from my blog post and I've been using this code successfully in almost all my Remix apps.
I appreciate any feedback if rejected and willing to make any modifications requested. ;)
I've chosen a gradient from
bg-blue-brand
tobg-aqua-brand
I think works good on both dark and light modes.Preview: