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
I'm working on a listener that handles rejected actions, specifically focusing on conditionally logging 412 errors based on certain conditions. Here's a simplified version of my listener:
In this case, I'm checking action.meta.arg.originalArgs.opts.log412 to decide whether to log 412 errors.
Additionally, in one of my components, I pass this option like so:
// Some componentconst{ data }=useQuery({
criteria,opts: {log412: true},});
My Question:
Is it safe to rely on action.meta.arg.originalArgs for passing custom options like this?
Specifically, is originalArgs meant for public use, or is it primarily intended for internal purposes?
The text was updated successfully, but these errors were encountered:
I'm working on a listener that handles rejected actions, specifically focusing on conditionally logging 412 errors based on certain conditions. Here's a simplified version of my listener:
In this case, I'm checking action.meta.arg.originalArgs.opts.log412 to decide whether to log 412 errors.
Additionally, in one of my components, I pass this option like so:
My Question:
Is it safe to rely on
action.meta.arg.originalArgs
for passing custom options like this?Specifically, is
originalArgs
meant for public use, or is it primarily intended for internal purposes?The text was updated successfully, but these errors were encountered: