diff --git a/.size-snapshot.json b/.size-snapshot.json index 2264db2..dadcae2 100644 --- a/.size-snapshot.json +++ b/.size-snapshot.json @@ -2,12 +2,12 @@ "dist/index.js": { "bundled": 100428, "minified": 47447, - "gzipped": 12338 + "gzipped": 12335 }, "dist/index.es.js": { "bundled": 99612, "minified": 46722, - "gzipped": 12193, + "gzipped": 12189, "treeshaked": { "rollup": { "code": 80, diff --git a/CHANGELOG.md b/CHANGELOG.md index 80dad3e..b1f759a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 7.0.0-rc.3 + +- Fixed an issue where `column.clearSortBy` would crash + ## 7.0.0-rc.2 - `reducerHandlers` has been deprecated in favor of the new `stateReducers` hook. diff --git a/docs/api/useFilters.md b/docs/api/useFilters.md index b6e9f78..4510f9d 100644 --- a/docs/api/useFilters.md +++ b/docs/api/useFilters.md @@ -27,10 +27,10 @@ The following options are supported via the main options object passed to `useTa - Must be **memoized** - Allows overriding or adding additional filter types for columns to use. If a column's filter type isn't found on this object, it will default to using the built-in filter types. - For more information on filter types, see Filtering -- `getResetFiltersDeps: Function(instance) => [...useEffectDependencies]` - - Optional - - Defaults to `false` - - If set, the dependencies returned from this function will be used to determine when the effect to reset the `filters` state is fired. +- `autoResetFilters: Boolean` + - Defaults to `true` + - When `true`, the `filters` state will automatically reset if any of the following conditions are met: + - `data` is changed - To disable, set to `false` - For more information see the FAQ ["How do I stop my table state from automatically resetting when my data changes?"](./faq#how-do-i-stop-my-table-state-from-automatically-resetting-when-my-data-changes) diff --git a/package.json b/package.json index 272a391..cf42a6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-table", - "version": "7.0.0-rc.2", + "version": "7.0.0-rc.3", "description": "Hooks for building lightweight, fast and extendable datagrids for React", "license": "MIT", "homepage": "https://github.com/tannerlinsley/react-table#readme",