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
So I tried to debug this phenomenon:
After axios is transforming the responseresponse.data.constructor === Object is true.
Due to the resolving of promises I lose track of the variable, but as soon as they appear in this module (e.g. here) response.data.constructor === Object is false.
anyobject.constructor === Object
is a popular method to check if a variable is an object (e.g. see here: https://stackoverflow.com/a/16608074/1301058)For the server-side response data from
$axios.get
this doesn't work becauseresponse.data.constructor === Object
returnsfalse
.Steps to reproduce:
git clone [email protected]:LucidityDesign/axios-module.git
yarn install
yarn dev
response type false
Expected behaviour:
The text was updated successfully, but these errors were encountered: