-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix(builder): call watch:restart
after watch:fileChanged
hook
#5620
Conversation
watch:fileChanged
hook
@clarkdo Yes. Although almost all hooks should be deprecated in flavor on new namespaces with nuxt 3. This may just be annoying for some module users that are using this hook. Not something emergency. Still if you feel is good to deprecate sooner feel free to merge. But i vote for deprecating all once with a single PR in flavor of better namespaces. |
@pi0 Yes, a separated pr make sense. |
428eda6
to
f914b80
Compare
watch:fileChanged
hook
@pi0 I reverted the deprecation change and make hooks run in-order |
@clarkdo I tried to fix the PR titled |
Codecov Report
@@ Coverage Diff @@
## dev #5620 +/- ##
=====================================
Coverage 95.7% 95.7%
=====================================
Files 81 81
Lines 2633 2633
Branches 670 670
=====================================
Hits 2520 2520
Misses 95 95
Partials 18 18
Continue to review full report at Codecov.
|
If we allow async watch handlers, promise rejection should be somehow handled. Probably via a console.fatal or error. |
The handler is async now since callHook returns promise, the changing in this pr is just keeping order of the execution. About the |
@clarkdo Both previously and now errors was unhandled. It was an enhancenment idea to catch and pipe errors to core/nuxt |
@Clark right. I didn't remembered that. |
watch:restart
after watch:fileChanged
hook
Types of changes
Description
@pi0 Should this be deprecacted ? I don't see any doc is refering it.
If there is anyone using it, this may be a slightly breaking change since there is no
builder
as param anymore.Checklist: