diff --git a/docs/api.md b/docs/api.md index b26f6ea..6d87fa6 100644 --- a/docs/api.md +++ b/docs/api.md @@ -25,7 +25,7 @@ React Table is essentially a compatible collection of **custom React hooks**: ### Hook Usage -`useTable` is the **primary** hook used to build a React Table. It serves as the starting point for **every option and every plugin hook** that React Table supports. The options passed into `useTable` are supplied to every plugin hook after it in the order they are supplied, eventually resulting a final `instance` object that you can use to build your table UI and interact with the table's state. +`useTable` is the **primary** hook used to build a React Table. It serves as the starting point for **every option and every plugin hook** that React Table supports. The options passed into `useTable` are supplied to every plugin hook after it in the order they are supplied, eventually resulting in a final `instance` object that you can use to build your table UI and interact with the table's state. ```js const instance = useTable( @@ -196,7 +196,7 @@ The following properties are available on the table instance returned from `useT - **Some of these headers may be materialized as placeholders** - See [Header Group Properties](#headergroup-properties) for more information - `headers: Array` - - An **nested** array of final header objects, **similar in structure to the original columns configuration option, but rebuilt for ordering** + - A **nested** array of final header objects, **similar in structure to the original columns configuration option, but rebuilt for ordering** - Each contains the headers that are displayed underneath it. - **Some of these headers may be materialized as placeholders** - See [Column Properties](#column-properties) for more information @@ -535,7 +535,7 @@ The following properties are available on every `Column` object returned by the - `canFilter: Bool` - Denotes whether a column is filterable or not depending on if it has a valid accessor/data model or is manually disabled via an option. - `setFilter: Function(filterValue) => void` - - An column-level function used to update the filter value for this column + - A column-level function used to update the filter value for this column - `filterValue: any` - The current filter value for this column, resolved from the table state's `filters` object - `preFilteredRows: Array` diff --git a/sizes-cjs.json b/sizes-cjs.json index 45a482a..eb048b7 100644 --- a/sizes-cjs.json +++ b/sizes-cjs.json @@ -1,4 +1,14 @@ [ + { + "timestamp": 1575391465436, + "files": [ + { + "filename": "index.js", + "size": 20511, + "delta": 1 + } + ] + }, { "timestamp": 1575345020328, "files": [ diff --git a/sizes-es.json b/sizes-es.json index a5f059f..d0444d6 100644 --- a/sizes-es.json +++ b/sizes-es.json @@ -1,4 +1,14 @@ [ + { + "timestamp": 1575391457318, + "files": [ + { + "filename": "index.es.js", + "size": 20368, + "delta": -1 + } + ] + }, { "timestamp": 1575345027852, "files": [ diff --git a/src/plugin-hooks/useSortBy.js b/src/plugin-hooks/useSortBy.js index 4d4f58c..cf35e8e 100755 --- a/src/plugin-hooks/useSortBy.js +++ b/src/plugin-hooks/useSortBy.js @@ -30,7 +30,7 @@ reducerHandlers[pluginName] = (state, action) => { if (action.type === actions.resetSortBy) { return { ...state, - sortBy: {}, + sortBy: [], } }