N
N
Nikolay Matyushkin2019-07-25 01:58:16
safari
Nikolay Matyushkin, 2019-07-25 01:58:16

Site on React JS vs. Apple products?

Hello. There is a site on React + Redux. The styled-components library is responsible for the styles, axios is responsible for the communication between the application and the third-party server. There is a Main component that displays the menu for today. Everything is classic, in componentDidMount I call a pure function that makes a request to the server, the answer comes, I pack it in state, then work with it. Everything is ok, because everything works .... on all devices except the apple. Absolutely on all devices. Entering from the apple of the Main component does not render anything, there are no errors. Initially, Safari and Chrome on the ipad complained about what I used to work with the response from the server, the Object.values ​​method. I solved this problem cardinally, put underscore and rewrote all methods to _.map, etc. They stopped cursing, but the component does not render anything. I will not post the code, because there is a lot of him andworking . Does not work only on apple devices.
Any thoughts on this issue, comrades?
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
strelok011, 2019-07-25
@Devilz_1

I have never experienced such problems, applications on react normally work in iPhones. Of course, there are enough other "nuances" that piss me off.
I recommend connecting the iPhone to the computer with a cord and go in debug mode (scatter consoles, debugs, which is tastier) with the developer panel in the browser.

K
krka92, 2019-07-25
@krka92

5d38f4ca31425960109641.jpeg
Here on react from iPhone. Same set (React + Redux). Tested on both desktop and iPad.
Can't your developer tools be the culprit?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question