-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Comparing changes
Open a pull request
base repository: reduxjs/react-redux
base: v6.0.1
head repository: reduxjs/react-redux
compare: master
Commits on Mar 3, 2019
-
Add first SSR integration-tests (#1197)
* Added integration test-folder and first basic server-rendering test * Added tests for dispatching actions serverside
Configuration menu - View commit details
-
Copy full SHA for 5bf647d - Browse repository at this point
Copy the full SHA 5bf647dView commit details
Commits on Mar 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 471cb2c - Browse repository at this point
Copy the full SHA 471cb2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f3c2e2 - Browse repository at this point
Copy the full SHA 4f3c2e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72ed6db - Browse repository at this point
Copy the full SHA 72ed6dbView commit details
Commits on Apr 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8e20a05 - Browse repository at this point
Copy the full SHA 8e20a05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28adb54 - Browse repository at this point
Copy the full SHA 28adb54View commit details
Commits on Apr 7, 2019
-
* Enable versioned doc * Start adding 6.0 docs * Rename 5.1.1 to 5.x and make it work * Cast v6.x versioned docs * Display v7.x as pre-release version
Configuration menu - View commit details
-
Copy full SHA for eae14cc - Browse repository at this point
Copy the full SHA eae14ccView commit details
Commits on Apr 9, 2019
-
Use Hooks internally (aka 7.0) (#1209)
* Update React to latest * Update React peer dependency to 16.8.x * Initial re-implementation of `connectAdvanced` using hooks Matches changes from v7.0.0-alpha.1 * Update tests to match v7-alpha.1 behavior Added rtl.act() calls around dispatches and other component updates Added clarification on expected mapState calls in some places Disabled some no-longer-relevant tests per implementation Made tests run against React 16.8 by default * adding a react hooks test that fails with v7 alpha * wrapping store.dispatch with rlt.act, fixes component renders * reducing hooks test to 2 components * Fix case where wrapper props changed before store update render * Mark ReactDOM as global in UMD builds Matches state as of v7.0.0-alpha.2 * Fix perf problems with out-of-bounds array access Matches state as of v7.0.0-alpha.3 * Add modules to handle importing batchedUpdates * Use appropriate batched update API for subscriptions * Inject unstable_batchedUpdates in default entry point * Provide an alternate entry point for alternate renderers Matches state as of v7.0.0-alpha.4 * Remove batch arg from createListenerCollection (#1205) This prevents a bug with Terser (webpack's default minifier) where the returned batch function isn't defined due to function inlining. Matches state as of v7.0.0-alpha.5 * Remove older React versions from Travis * Add comments to connectAdvanced. Many much comments! * Re-add test for a custom store as a prop * Fix null pointer exception when store is given as a prop We were trying to read contextValue.subscription, even if that value was null. Reworked logic to handle cases where the store came in as a prop. * Ensure wrapper props are passed correctly when forwarding refs * Add a test to verify subscription passthrough with store-as-prop * add non-batched tests (#1208) * Force SSR tests to mimic a Node environment * Restructure connect tests to group by category for easier reading Yeah, this kills the blame history. Sorry. But it's a lot easier to figure out what the tests are used for now. * Clean up dead code in Provider tests * Add tests to verify errors are thrown for bad mapState functions * Fix edge cases around saved wrapper props and error handling Changed to useLayoutEffect to ensure that the lastWrapperProps ref is written to synchronously when a render is committed. However, because React warns about this in SSR, added a check to fall back to plain useEffect under Node so we don't print warnings. Also added logic to ensure that if an error is thrown during a mapState function, but the component is unmounted before it can render, that the error will still be thrown. This shouldn't happen given our top-down subscriptions, but this will help surface the problem in our tests if we ever break the top-down behavior. * Formatting * Add a test to verify no errors are printed in SSR usage * Ignore .idea/ * 7.0.0-beta.0 * Updated outdated SSR-test (dispatch in ancestors) (#1213) * Added test for injecting dynamic reducers on client and server (#1211) * Remove WebStorm gitignore This goes in a global gitignore file, not a project. * [FIX]: #1219 Save references before update (#1220) * Re-ignore .idea/ * 7.0.0-beta.1 * Update the codecov config to be more forgiving. * add test to verify that mapStateToProps is always called with latest store state (#1215)
Configuration menu - View commit details
-
Copy full SHA for fa58572 - Browse repository at this point
Copy the full SHA fa58572View commit details -
Configuration menu - View commit details
-
Copy full SHA for 608c9c5 - Browse repository at this point
Copy the full SHA 608c9c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bed472 - Browse repository at this point
Copy the full SHA 4bed472View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c69baf - Browse repository at this point
Copy the full SHA 5c69bafView commit details -
Update v7 docs to be "current version" (#1222)
* v7 docs to current version * Update version number for 7.x
Configuration menu - View commit details
-
Copy full SHA for 7402f72 - Browse repository at this point
Copy the full SHA 7402f72View commit details
Commits on Apr 12, 2019
-
fix timing issue with setting up store subscription inside a connecte…
…d component; see issue 1226 (#1235)
Configuration menu - View commit details
-
Copy full SHA for 7555eae - Browse repository at this point
Copy the full SHA 7555eaeView commit details -
memoize renderedWrappedComponent separately to prevent this step from…
… being performed when redundant (#1234)
Configuration menu - View commit details
-
Copy full SHA for 8719eda - Browse repository at this point
Copy the full SHA 8719edaView commit details -
Since we're not testing multiple versions of React anymore, let's rip this stuff out to speed up the build process a tad.
Configuration menu - View commit details
-
Copy full SHA for c315d4d - Browse repository at this point
Copy the full SHA c315d4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8853327 - Browse repository at this point
Copy the full SHA 8853327View commit details
Commits on Apr 15, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 960b733 - Browse repository at this point
Copy the full SHA 960b733View commit details
Commits on Apr 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b67a8d3 - Browse repository at this point
Copy the full SHA b67a8d3View commit details -
Lower react peer dependency to ^16.8.3 (#1242)
This PR lowers the `react` peer dependency from `^16.8.4` to `^16.8.3`. This is useful for React Native users, since the `react` peer dependency in `react-native` is [exactly `16.8.3`.](https://github.com/facebook/react-native/blob/master/package.json#L86) This should have no effect on existing v7 users, but does open up new users to DevTools potentially crashing if they aren't on `react@^16.8.4`.
Configuration menu - View commit details
-
Copy full SHA for d4b54b5 - Browse repository at this point
Copy the full SHA d4b54b5View commit details
Commits on Apr 22, 2019
-
* Formatting * Add initial hooks API docs * Enable alpha docs versioning * Fix hooks page metadata
Configuration menu - View commit details
-
Copy full SHA for edc1501 - Browse repository at this point
Copy the full SHA edc1501View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf24fc8 - Browse repository at this point
Copy the full SHA cf24fc8View commit details -
Fixed example typo `useReduxDispatch => useDispatch`
Configuration menu - View commit details
-
Copy full SHA for aefc520 - Browse repository at this point
Copy the full SHA aefc520View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4f09a7 - Browse repository at this point
Copy the full SHA d4f09a7View commit details
Commits on Apr 23, 2019
-
Fix typo in useSelector docs (#1254)
* Add selector deps, perf info, and bump version * Fix typo in useSelector docs
Configuration menu - View commit details
-
Copy full SHA for e2804f2 - Browse repository at this point
Copy the full SHA e2804f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67944a3 - Browse repository at this point
Copy the full SHA 67944a3View commit details
Commits on Apr 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 9803028 - Browse repository at this point
Copy the full SHA 9803028View commit details
Commits on Apr 26, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d162625 - Browse repository at this point
Copy the full SHA d162625View commit details
Commits on Apr 28, 2019
-
Configuration menu - View commit details
-
Copy full SHA for dbfcc97 - Browse repository at this point
Copy the full SHA dbfcc97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 712616d - Browse repository at this point
Copy the full SHA 712616dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4c0d4d - Browse repository at this point
Copy the full SHA e4c0d4dView commit details
Commits on May 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 58bbf4e - Browse repository at this point
Copy the full SHA 58bbf4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0586c0b - Browse repository at this point
Copy the full SHA 0586c0bView commit details
Commits on May 2, 2019
-
Removed the useAction suggestion as useAction has been removed.
Configuration menu - View commit details
-
Copy full SHA for 5867fdc - Browse repository at this point
Copy the full SHA 5867fdcView commit details -
* Add `batch()` to docs * Make website work for `batch()` docs as well as on versioned docs
Configuration menu - View commit details
-
Copy full SHA for b4d6ac3 - Browse repository at this point
Copy the full SHA b4d6ac3View commit details
Commits on May 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8605088 - Browse repository at this point
Copy the full SHA 8605088View commit details
Commits on May 8, 2019
-
Configuration menu - View commit details
-
Copy full SHA for dec00a8 - Browse repository at this point
Copy the full SHA dec00a8View commit details
Commits on May 13, 2019
-
Check if window.document.createElement exists to determine if renderi…
…ng on server or not (#1283)
Configuration menu - View commit details
-
Copy full SHA for dcf2cb0 - Browse repository at this point
Copy the full SHA dcf2cb0View commit details
Commits on May 15, 2019
-
Changed "Prefer `useSelector()` as your primary choices." to ...primary choice.
Configuration menu - View commit details
-
Copy full SHA for 7669175 - Browse repository at this point
Copy the full SHA 7669175View commit details
Commits on May 20, 2019
-
adjust the hooks docs with more details about useSelector and add som…
…e more examples (#1267) * adjust the hooks docs with more details about the inner workings of useSelector and add some more examples * update hooks docs for removal of `useSelector` deps; add examples for usage with memoizing selectors; removed code example for custom `useActions` hook to not second-guess our own API design decision; some other minor docs tweaks * in the hooks doc code examples change nr to num or number * Update useSelector equality info and add hooks recipes
Configuration menu - View commit details
-
Copy full SHA for 0ea274a - Browse repository at this point
Copy the full SHA 0ea274aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24af60e - Browse repository at this point
Copy the full SHA 24af60eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e653f8 - Browse repository at this point
Copy the full SHA 7e653f8View commit details
Commits on May 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8a645be - Browse repository at this point
Copy the full SHA 8a645beView commit details
Commits on May 25, 2019
-
Various adjustments to hooks docs (#1293)
* fix bug in useActions recipe in the hooks docs * various adjustments to hooks docs * correct a statement about preventing stale props
Configuration menu - View commit details
-
Copy full SHA for 0640501 - Browse repository at this point
Copy the full SHA 0640501View commit details
Commits on May 29, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 08e6064 - Browse repository at this point
Copy the full SHA 08e6064View commit details
Commits on Jun 7, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 851eb0c - Browse repository at this point
Copy the full SHA 851eb0cView commit details
Commits on Jun 11, 2019
-
add react hooks for accessing redux store state and dispatching redux…
… actions (#1248) * add react hooks for accessing redux store state and dispatching redux actions * remove `useReduxContext` from public API * add `useRedux` hook * Preserve stack trace of errors inside store subscription callback Ported changes from react-redux-hooks-poc Note: the "transient errors" test seems flawed atm. * Alter test descriptions to use string names WebStorm won't recognize tests as runnable if `someFunc.name` is used as the `describe()` argument.
Configuration menu - View commit details
-
Copy full SHA for 15ef9b9 - Browse repository at this point
Copy the full SHA 15ef9b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d5b803 - Browse repository at this point
Copy the full SHA 3d5b803View commit details -
add
deps
touseSelector
to allow controlling stability of selector (#1251) * fix stale selector issue * add `deps` to `useSelector` to allow controlling stability of selector
Configuration menu - View commit details
-
Copy full SHA for 070270d - Browse repository at this point
Copy the full SHA 070270dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a5bef4 - Browse repository at this point
Copy the full SHA 3a5bef4View commit details -
use proper example code tag in hooks JSDoc comments (#1257)
* use proper example code tag in hooks JSDoc comments * fix mistake in `useActions` hook example code * remove TypeScript annotations from example code and adjust `useReduxContext` hook to also use @example JSDoc tag
Configuration menu - View commit details
-
Copy full SHA for 9f422c3 - Browse repository at this point
Copy the full SHA 9f422c3View commit details
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.