Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rsc refresh #6532

Merged
merged 2 commits into from
Sep 18, 2023
Merged

feat: rsc refresh #6532

merged 2 commits into from
Sep 18, 2023

Conversation

chenjun1011
Copy link
Collaborator

更新当前页面的 Server Component,同时保留 Client Component 的状态

@chenjun1011 chenjun1011 added the need review Need Review label Sep 15, 2023

function Router() {
const [cache, setCache] = useState(initialCache);
const [location, setLocation] = useState(window.location.href);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning 信息

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下个 PR 解决,会改动到这里

@chenjun1011 chenjun1011 merged commit a8a18eb into feat-rsc Sep 18, 2023
7 checks passed
@chenjun1011 chenjun1011 deleted the feat-rsc-refresh branch September 18, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need review Need Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants