这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: update rendering from renderToString to renderToReadableStream #233

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

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

Valerioageno
Copy link
Member

@Valerioageno Valerioageno commented Dec 18, 2024

Context & Description

This PR turns the kinda "deprecated" renderToString to the new renderToReadableStream solving the last issue related to #216.

For this iteration, we just wait for the whole stream, and then we pass it to the rust server. In a next iteration, we will need to pass every stream's chunk to rust to start streaming the response to the client. This will leverage the async server side resources loading, enhancing the user experience.

@Valerioageno Valerioageno self-assigned this Dec 18, 2024
@Valerioageno Valerioageno added bug Something isn't working enhancement New feature or request labels Dec 18, 2024
@Valerioageno Valerioageno changed the title feat: update rendering from renderToString to renderToReadableStream feat: update rendering from renderToString to renderToReadableStream Dec 18, 2024
@Valerioageno Valerioageno force-pushed the support-react-streaming-rendering branch 4 times, most recently from 316ab0a to f66ab97 Compare December 18, 2024 17:56
@Valerioageno Valerioageno merged commit 3e4e7ff into main Dec 18, 2024
7 checks passed
@Valerioageno Valerioageno deleted the support-react-streaming-rendering branch December 18, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants