跳到主要内容

React DOM 流式内连表单重放。

备注

被使用于 scripts/rollup/generate-inline-fizz-runtime.js 41 行

// TODO: Export a helper function that throws the error from javascript URLs instead.
// TODO: 导出一个辅助函数,从 JavaScript URL 中抛出错误。
// We can do that here since we mess with globals anyway and we can guarantee it has loaded.
// 我们可以在这里这样做,因为我们无论如何都会修改全局对象,并且可以保证它已经加载。
// It makes less sense in the external runtime since it's async loaded and doesn't expose globals
// 在外部运行环境中这样做意义不大,因为它是异步加载的且不暴露全局对象,
// so we might have to have two different URLs.
// 所以我们可能需要两个不同的 URL。

listenToFormSubmissionsForReplaying();