Skip to content

Commit

Permalink
fix: fix wordings in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Jul 7, 2023
1 parent 3f387cf commit ea9cf5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/messages.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const messages = {
warnLazyEffect() {
console.warn(
'"lazy" option is not supported for useEffect because the effect has to be run to collect dependencies. ' +
'The "lazy" option is not supported for useEffect because the effect has to be run to collect dependencies. ' +
'Use effect if you want to control the execution timing of the effect.'
);
},
warnLazyWatch() {
console.warn(
'"lazy" option is not supported for useWatch because the effect has to be run to collect dependencies. ' +
'Use the "immediate" option if you want to control callback execution. ' +
'The "lazy" option is not supported for useWatch because the effect has to be run to collect dependencies. ' +
'Use the "immediate" option if you want to invoke callback immediately. ' +
'Use watch if you want to control the execution timing of the effect.'
);
},
Expand Down

0 comments on commit ea9cf5e

Please sign in to comment.