Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mobxjs/mobx-react
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.4.0
Choose a base ref
...
head repository: mobxjs/mobx-react
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.4.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Nov 20, 2018

  1. Fixed rollup issue, fixes #608

    mweststrate committed Nov 20, 2018
    Copy the full SHA
    977a70e View commit details
  2. Published version 5.4.1

    mweststrate committed Nov 20, 2018
    Copy the full SHA
    4318f20 View commit details
Showing with 8 additions and 3 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +3 −2 src/observer.js
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# MobX-React Changelog

### 5.4.1

* Fixed issue where `react-is` wasn't properly rolled-up into the package. Fixes [#608](https://github.com/mobxjs/mobx-react/issues/608)

### 5.4.0

* Added support for forward refs, fixes [#602](https://github.com/mobxjs/mobx-react/issues/602)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobx-react",
"version": "5.4.0",
"version": "5.4.1",
"description": "React bindings for MobX. Create fully reactive components.",
"main": "index.js",
"jsnext:main": "index.module.js",
5 changes: 3 additions & 2 deletions src/observer.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import React, { Component, PureComponent } from "react"
import hoistStatics from "hoist-non-react-statics"
// FIXME: This fails in rollup, sadly, as a full import is bigger :-(
// import { ForwardRef } from "react-is"
import * as ReactIs from "react-is"
import { createAtom, Reaction, _allowStateChanges, $mobx } from "mobx"
import { findDOMNode as baseFindDOMNode } from "react-dom"

import EventEmitter from "./utils/EventEmitter"
import inject from "./inject"
import { patch as newPatch, newSymbol } from "./utils/utils"

const ReactIs = require("react-is")

const mobxAdminProperty = $mobx || "$mobx"
const mobxIsUnmounted = newSymbol("isUnmounted")