Skip to content

Commit

Permalink
fix: Enforce useColumnOrder to be used before useGroupBy (#2553)
Browse files Browse the repository at this point in the history
so that column order change done by grouping is applicable..on top of ordering done by useColumnOrder
  • Loading branch information
gargroh authored Jul 20, 2020
1 parent 1141ae1 commit 7044363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin-hooks/useGroupBy.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ function useInstance(instance) {
getHooks,
} = instance

ensurePluginOrder(plugins, ['useFilters'], 'useGroupBy')

ensurePluginOrder(plugins, ['useColumnOrder', 'useFilters'], 'useGroupBy')
const getInstance = useGetLatest(instance)

allColumns.forEach(column => {
Expand Down

1 comment on commit 7044363

@vercel
Copy link

@vercel vercel bot commented on 7044363 Jul 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.