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

Chores: Update examples, RHL 3 & babel 6 #59

Merged
merged 6 commits into from
Jun 17, 2016
Merged

Chores: Update examples, RHL 3 & babel 6 #59

merged 6 commits into from
Jun 17, 2016

Conversation

davidpfahler
Copy link
Member

@davidpfahler davidpfahler commented May 25, 2016

We are in a bit of a limbo. react-hot-loader version 3 is about to be released, but (possibly among other things) is waiting on ErrorBoundaries in react, which is likely to land in the next react release.

Because of this, I update the examples to reflect the current state of both deprecation and anticipation:

  • The react-hot-loader example features the upcoming version 3 (currently 3.0.0-beta.2), but does not yet support error catching and rendering on updates, only on initial mount. This is the future, but it's not quite here.
  • The react-transform-catch-errors example shows how to catch and render errors with the deprecated react-transform-catch-errors plugin. This is the way of the past, but it works today.

If check out the PR, which brings ErrorBoundaries to react, and build react from source, you can use the RHL 3 example with hot reloading error capture today. When you clone the PR to your machine and build react (npm install; npm run build) you can replace the react package in the node_modules folder of the react-hot-loader example with the react folder in build/packages/.


Please review these changes. None should be breaking or even be worth publishing to npm (that's why they are labeled "chores").

@davidpfahler davidpfahler force-pushed the chores branch 3 times, most recently from 1ac19ce to a58cb6b Compare May 26, 2016 08:55
@davidpfahler davidpfahler changed the title Chores: Update examples and prepare for RHL 3 Chores: Update examples, RHL 3 & babel 6 May 26, 2016
@davidpfahler davidpfahler merged commit aac6afe into master Jun 17, 2016
@davidpfahler davidpfahler deleted the chores branch June 17, 2016 14:10
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.

2 participants