Skip to content

fix(material-experimental): better server-side rendering support for progress bar - #19036

Merged
andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:mdc-progress-bar-ssr
Apr 17, 2020
Merged

fix(material-experimental): better server-side rendering support for progress bar#19036
andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:mdc-progress-bar-ssr

Conversation

@crisbeto

Copy link
Copy Markdown
Member

I got some changes in with material-components/material-components-web#5792 which allow us to properly render a progress bar during server-side rendering, instead of turning it into a noop. These changes remove all of the isBrowser checks.

I also removed the isBrowser check from the MDC checkbox, because the offsetWidth access is safe, even though the property might be undefined.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent merge safe target: patch This PR is targeted for the next patch release labels Apr 10, 2020
@crisbeto
crisbeto requested a review from a team April 10, 2020 06:23
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 10, 2020
…progress bar

I got some changes in with material-components/material-components-web#5792 which allow us to properly render a progress bar during server-side rendering, instead of turning it into a noop. These changes remove all of the `isBrowser` checks.

I also removed the `isBrowser` check from the MDC checkbox, because the `offsetWidth` access is safe, even though the property might be undefined.
@crisbeto
crisbeto force-pushed the mdc-progress-bar-ssr branch from 9c435f6 to 79409fc Compare April 10, 2020 06:25

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba added lgtm action: merge The PR is ready for merge by the caretaker labels Apr 10, 2020
@andrewseguin
andrewseguin merged commit 5d25d1b into angular:master Apr 17, 2020
andrewseguin pushed a commit that referenced this pull request Apr 17, 2020
…progress bar (#19036)

I got some changes in with material-components/material-components-web#5792 which allow us to properly render a progress bar during server-side rendering, instead of turning it into a noop. These changes remove all of the `isBrowser` checks.

I also removed the `isBrowser` check from the MDC checkbox, because the `offsetWidth` access is safe, even though the property might be undefined.

(cherry picked from commit 5d25d1b)
soro-google pushed a commit to soro-google/components that referenced this pull request Apr 24, 2020
…progress bar (angular#19036)

I got some changes in with material-components/material-components-web#5792 which allow us to properly render a progress bar during server-side rendering, instead of turning it into a noop. These changes remove all of the `isBrowser` checks.

I also removed the `isBrowser` check from the MDC checkbox, because the `offsetWidth` access is safe, even though the property might be undefined.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators May 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants