-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
feat(nuxt): accept hideDelay
and resetDelay
props for loading indicator
#31532
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
Conversation
|
WalkthroughThe changes update the NuxtLoadingIndicator component by introducing two numeric properties, ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/nuxt/src/app/components/nuxt-loading-indicator.ts (1)
15-22
: Consider adding JSDoc comments for improved developer experience.Adding JSDoc comments to describe what these timing parameters control would help other developers understand their purpose without having to look at the implementation of
useLoadingIndicator
.+ /** + * Delay in ms before hiding the loading indicator after completion + */ hideDelay: { type: Number, default: 500, }, + /** + * Delay in ms before resetting the loading indicator state + */ resetDelay: { type: Number, default: 400, },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/nuxt/src/app/components/nuxt-loading-indicator.ts
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: code
- GitHub Check: codeql (javascript-typescript)
- GitHub Check: build
- GitHub Check: codeql (actions)
🔇 Additional comments (2)
packages/nuxt/src/app/components/nuxt-loading-indicator.ts (2)
15-22
: Well-structured addition of new props.The addition of
hideDelay
andresetDelay
props with appropriate types and default values aligns well with the existing pattern in this component. These new props enhance configurability of the loading indicator timing behaviour.
44-45
: Correctly integrating new props with the loading indicator.The new props are properly passed to the
useLoadingIndicator
function, enabling component-level configuration of these timing parameters.
@nuxt/kit
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #31532 will not alter performanceComparing Summary
|
Shouldn't we allow change also the |
@userquin this is already possible: <NuxtLoadingIndicator :style="{ transformOrigin: 'right', transition: 'height 1s' }" /> |
🔗 Linked issue
resolves #26637
📚 Description
this allows configuring
hideDelay
andresetDelay
which were previously only configurable withuseLoadingIndicator()