Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data-loaders/defineColadaLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export function defineColadaLoader<Data>(
if (this.pendingTo === to) {
// console.log(' ->', this.staged)
if (process.env.NODE_ENV === 'development') {
if (this.staged === STAGED_NO_VALUE) {
if (this.staged === STAGED_NO_VALUE && this.stagedError === null) {
console.warn(
`Loader "${key}"'s "commit()" was called but there is no staged data.`
)
Expand Down
2 changes: 1 addition & 1 deletion src/data-loaders/defineLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export function defineBasicLoader<Data>(
if (this.pendingTo === to) {
// console.log('👉 commit', this.staged)
if (process.env.NODE_ENV === 'development') {
if (this.staged === STAGED_NO_VALUE) {
if (this.staged === STAGED_NO_VALUE && this.stagedError === null) {
console.warn(
`Loader "${options.key}"'s "commit()" was called but there is no staged data.`
)
Expand Down
2 changes: 1 addition & 1 deletion src/data-loaders/defineQueryLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function defineQueryLoader<Data, isLazy extends boolean>(
if (this.pendingTo === to && !this.error.value) {
console.log('👉 commit', this.staged)
if (process.env.NODE_ENV === 'development') {
if (this.staged === STAGED_NO_VALUE) {
if (this.staged === STAGED_NO_VALUE && this.stagedError === null) {
console.warn(
`Loader "${options.queryKey?.join(
'/'
Expand Down
2 changes: 1 addition & 1 deletion src/data-loaders/defineVueFireLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function defineVueFireLoader<
if (this.pendingTo === to && !this.error.value) {
// console.log('👉 commit', this.staged)
if (process.env.NODE_ENV === 'development') {
if (this.staged === STAGED_NO_VALUE) {
if (this.staged === STAGED_NO_VALUE && this.stagedError === null) {
console.warn(
`Loader "${options.key}"'s "commit()" was called but there is no staged data.`
)
Expand Down