React/redux 应用程序在 Safari 上呈现空白屏幕 [英] React/redux app renders blank screen on Safari

查看:30
本文介绍了React/redux 应用程序在 Safari 上呈现空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 React/redux 中构建了一个应用程序,它适用于我尝试过的所有浏览器,但适用于 MacOS 上的 Safari 和 iPhone 上的任何浏览器.我没有收到错误消息,没有控制台消息,也没有任何可以给我一些想法的东西.它只在 Safari 中呈现标签并且屏幕是空白的.

I built an app in React/redux that works in every browser I tried, BUT Safari on MacOS and any browser on iPhone. I get no error, no console message, nothing that would give me some idea. It only renders tag in Safari and the screen is blank.

http://podcast.exploration.io

你知道我如何追踪这个问题吗?

Do you have any idea how could I trace this issue?

谢谢

推荐答案

我发现了这个问题.它失败的主要原因是获取"功能……在 Safari 中不可用.我不确定为什么它不会打印任何内容,但我怀疑,因为在 try/catch 中调用了fetch".

I found the issue. The main reason why it failed was 'fetch' function...which is not available in Safari. I'm not sure why it wouldn't print anything, but I suspect, because 'fetch' was called inside try/catch.

这篇关于React/redux 应用程序在 Safari 上呈现空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆