diff --git a/examples/19-react-18/src/App.jsx b/examples/19-react-18/src/App.jsx
index 25bbdb1..da9238f 100644
--- a/examples/19-react-18/src/App.jsx
+++ b/examples/19-react-18/src/App.jsx
@@ -10,9 +10,8 @@ export const App = () => {
useSsrEffect(() => {
registerEffect(asyncFn).then((data) => {
- console.log('test', s);
setState(data);
- })
+ });
}, [s]);
return (
diff --git a/examples/19-react-18/src/server.jsx b/examples/19-react-18/src/server.jsx
index a5adb79..604b4bc 100644
--- a/examples/19-react-18/src/server.jsx
+++ b/examples/19-react-18/src/server.jsx
@@ -8,42 +8,61 @@ import { serverRender } from '@issr/core';
const app = new Koa();
const router = new Router();
+const ABORT_DELAY = 10000;
app.use(serve(path.resolve(__dirname, '../public')));
router.get('/*', async (ctx) => {
- ctx.respond = false;
- ctx.res.statusCode = 200;
- ctx.response.set('content-type', 'text/html');
+ let didError = false;
- const { stream } = await serverRender.stream(() => (
-
-
-
-
-
-
- Issr
-
-
-