You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the usePagination function we are running into the problem that injectedGlobalOptions are undefined in this line pagination: (_injectedGlobalOption = injectedGlobalOptions.pagination) !== null && _injectedGlobalOption !== void 0 ? _injectedGlobalOption : {}
When just replacing injectedGlobalOptions.pagination with injectedGlobalOptions?.pagination it works.
代码重现 Reproduce
I honestly dont know how to reproduce it.
期望结果 Desired result
No undefined error and breaking the code.
其他信息 Other information
The text was updated successfully, but these errors were encountered:
const injectedGlobalOptions = vueDemi.inject(GLOBAL_OPTIONS_PROVIDE_KEY, {});
I'm using the same service on every page with the same data, but just in one page is broken with this error.
LuXDAmore
added a commit
to LuXDAmore/vue-request
that referenced
this issue
Jan 8, 2024
Bug 描述 Bug description
In the usePagination function we are running into the problem that
injectedGlobalOptions
are undefined in this linepagination: (_injectedGlobalOption = injectedGlobalOptions.pagination) !== null && _injectedGlobalOption !== void 0 ? _injectedGlobalOption : {}
When just replacing
injectedGlobalOptions.pagination
withinjectedGlobalOptions?.pagination
it works.代码重现 Reproduce
I honestly dont know how to reproduce it.
期望结果 Desired result
No undefined error and breaking the code.
其他信息 Other information
The text was updated successfully, but these errors were encountered: