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

Async + parallel rendering #390

Closed
wants to merge 1 commit into from
Closed

Async + parallel rendering #390

wants to merge 1 commit into from

Conversation

srolel
Copy link

@srolel srolel commented Mar 24, 2020

This includes wrapping existing functionality in stateful classes, rather than having everything share the same global state. The API remains the same and all existing unit tests remain and pass.

In addition, renderStaticAsync is added which does what it sounds like, call a provided, async renderFn and return a promise with the rendered html and css.

Having stateful classes means we can instantiate them per request in the SSR use-case, this enabling parallel rendering.

note: PR into 2.4.0 since master is lagging behind it

@khanbot
Copy link

khanbot commented Mar 24, 2020

Hey @srolel,

Thanks for the PR! Mind signing our Contributor License Agreement?

When you've done so, go ahead and comment [clabot:check] and I'll check again.

Yours truly,
khanbot

@srolel
Copy link
Author

srolel commented Mar 24, 2020

[clabot:check]

@khanbot
Copy link

khanbot commented Mar 24, 2020

CLA signature looks good 👍

@srolel srolel changed the base branch from master to 2.4.0 March 24, 2020 20:41
@jlfwong jlfwong closed this Dec 6, 2020
@jlfwong jlfwong deleted the branch Khan:2.4.0 December 6, 2020 23:11
@ljharb
Copy link

ljharb commented Dec 7, 2020

Why was this closed and the branch deleted?

@jlfwong
Copy link
Collaborator

jlfwong commented Dec 7, 2020

Oh, huh -- I think it was closed automatically because I merged the PR that was the 2.4.0 branch.

The branch that was deleted isn't the branch for this PR -- it was the branch this PR was targeting, which was from #382.

I can't reopen it because the branch targeted by this PR no longer exists.

@ljharb
Copy link

ljharb commented Dec 7, 2020

ah, yeah that would do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants