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 using React Adopt in a Graphql/Apollo website. The code works great on almost every browser. One exception happens with Chrome version 38. Users that have this version can't navigate the site because in the browser console they get the following error message:
Uncaught TypeError: undefined is not a function
Clicking on the error I get to the following line in the code:
if(!values(e).some(isValidRenderProp))throwError("The render props object mapper just accept valid elements as value");
I assume that this has to do something with the way I pass children to the queries used for the mapper object and this is one example:
constproductsQuery=({ render, type })=>(<Queryquery={PRODUCT_QUERY}variables={{ type }}>{render}</Query>);constmapper={ productsQuery };<Adoptmapper={mapper}>
/* code */
</Adopt>
I'm still investigating the issue to see if it happens on other browsers as well (currently using Hotjar to catch the error and Browser Stack to debug it) but I can already tell you that most browsers and versions do not have any issue with the code. Any help/suggestion would be very much appreciated. Apologies in advance if I didn't include enough details in the description, please let me know what you need to see and I'll respond with it right away.
The text was updated successfully, but these errors were encountered:
Hello there!
I'm using React Adopt in a Graphql/Apollo website. The code works great on almost every browser. One exception happens with Chrome version 38. Users that have this version can't navigate the site because in the browser console they get the following error message:
Clicking on the error I get to the following line in the code:
I assume that this has to do something with the way I pass children to the queries used for the mapper object and this is one example:
I'm still investigating the issue to see if it happens on other browsers as well (currently using Hotjar to catch the error and Browser Stack to debug it) but I can already tell you that most browsers and versions do not have any issue with the code. Any help/suggestion would be very much appreciated. Apologies in advance if I didn't include enough details in the description, please let me know what you need to see and I'll respond with it right away.
The text was updated successfully, but these errors were encountered: