Results 22 issues of 水澜

* Support Suspense and lazy https://reactjs.org/docs/react-api.html#reactsuspense * Support render suspense server component

实现思路 1. 使用 react-server-dom-webpack/server.edge 渲染出 RSC 产物(只渲染 Server Component) 2. 使用 react-server-dom-webpack/client.edge 加载 RSC 产物(这里需要在 Server 端加载 Client Component,并进行渲染) 3. 使用 react-dom/server.edge 渲染出完整首屏 HTML

基础渲染链路 工程 - [x] 不同类型组件识别转换 - [x] 生成 Client Manifest - [x] 构建 Client Bundle - [x] React 版本可切换 - [x] RSC 能力的开关 Client 端 - [x] 基于 VDOM 渲染...

### Describe the bug 假设有如下模块: ```ts // constant.ts export const SPM_A = 'tbhj'; export const SPM_B = 'home'; export const Images = { channelNameApng: 'https://gw.alicdn.com/imgextra/i4/O1CN01xQuasY1LvqJpbtUvQ_!!6000000001362-54-tps-548-94.apng', bigBackImgNormal: 'https://gw.alicdn.com/imgextra/i2/O1CN01W2ayHS1nx2ZXTK12W_!!6000000005155-0-tps-1500-2436.jpg', headerModalCloseBtn: 'https://gw.alicdn.com/imgextra/i4/O1CN01uj6OIX1fZD33ksJ1d_!!6000000004020-2-tps-62-62.png', bannerModalCloseIcon:...

bug

### Describe the bug 现象 TypeError: Cannot read properties of undefined (reading 'jsx') ![image](https://github.com/alibaba/ice/assets/1303018/6b5b409e-56e2-4b61-a407-c00e90a79eac) 复现方式: * rax-compat 项目,同时引入 pkg 组件 原因: * 普通 ICE 组件,例如 document.tsx 依赖的 jsx 从 @ice/runtime/jsx-runtime...

bug

### Describe the bug 如下两个文件, 构建后,Client 端没有正常移除 serverDataLoader 相关逻辑 pages/home.tsx ```tsx import { defineServerDataLoader, defineDataLoader, useData } from 'ice'; import { getServerData, getClientData } from '../../services/request'; export default function Home(props)...

bug

### Summary | 概述 数据加载异步化,不阻塞渲染,从而减少页面白屏时间 ### Motivation | 背景 DataLoader 提供了前置加载数据请求的能力,目前的设计是页面需要等待 DataLoader 的数据加载完成后,才开始渲染 如果接口过慢,可能导致白屏时间过久 因此,希望也能提供 DataLoader 不阻塞渲染的能力,页面可以先渲染,数据加载完成后,再次更新渲染内容 ### Usage example | 使用示例 见方案设计 ### Detailed design | 方案设计 根据对数据消费方式的差异,分为两套方案 ###...

rfc
need review

### Describe the bug 如题 复现场景: 一体化应用,Server 端 external Midway 的配置,不应该对 DataLoader 生效 ### Expected behavior 一体化场景下正常加载 midway 相关依赖 ### Actual behavior _No response_ ### Version of ice.js 3 ###...

bug

修复 Document 构建产物被 SSR 构建产物覆盖的问题