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

Fix: Fix livereload on second try #1103

Merged
merged 3 commits into from
Nov 11, 2018
Merged

Fix: Fix livereload on second try #1103

merged 3 commits into from
Nov 11, 2018

Conversation

kahkhang
Copy link
Contributor

@kahkhang kahkhang commented Nov 10, 2018

Motivation

Fixes LiveReload on second try (#1091), due to local variable defining livereload url losing its value during reload.

Fix #1091

Have you read the Contributing Guidelines on pull requests?

Yes!

Test Plan

yarn start, then edited v1/website/pages/index.js multiple times. Ensured that live reload now works.

Related PRs

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 10, 2018
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Nov 10, 2018

Deploy preview for docusaurus-preview ready!

Built with commit 0f42a9a

https://deploy-preview-1103--docusaurus-preview.netlify.com

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

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

The approach is sound! Just have to rename and we're good to go. Thanks 😄

v1/lib/server/liveReloadServer.js Outdated Show resolved Hide resolved
@endiliey endiliey merged commit 49af207 into facebook:master Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants