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
For some reason, when I'm giving to subscribe function some options variable, It wraps her arguments in query: {}. This is not cool, to find, that your variable was edited, when you just gave it to your function. I've fixed this by replacing options (in func) on JSON.parse(JSON.stringify(options)). May be there are more efficient way, but idk. Here is example:
I've pushed a minor update in v0.21.5 release to shallow copy the options argument similar to the other methods.
Note that we don't do deep clone because the options argument could technically contain user defined functions (e.g. fetch) which will require special manual handling. I'll think a little more on it with the refactoring and eventually may create a helper that will call structuredClone + some additional handling for the special cases but for now remains a low priority.
For some reason, when I'm giving to subscribe function some options variable, It wraps her arguments in query: {}. This is not cool, to find, that your variable was edited, when you just gave it to your function. I've fixed this by replacing options (in func) on JSON.parse(JSON.stringify(options)). May be there are more efficient way, but idk. Here is example:
The text was updated successfully, but these errors were encountered: