Skip to content

Commit

Permalink
fix: update React DOM to use edge (#776)
Browse files Browse the repository at this point in the history
async hooks won't be supported and are discouraged, the edge version of React DOM doesn't use async hooks.
  • Loading branch information
ShivamJoker authored Jan 9, 2025
1 parent f6eeeaa commit 47baedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/functions/src/ssr.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "fs/promises";
import App from "./react/App";
import ReactDOMServer from "react-dom/server";
import ReactDOMServer from "react-dom/server.edge";

import React from "react";
import API from "./api";
Expand Down

0 comments on commit 47baedc

Please sign in to comment.