Cleanup ordering composable

This commit is contained in:
wvffle 2022-06-30 03:22:51 +00:00 committed by Georg Krause
parent 33dfeea168
commit d57932444b
1 changed files with 1 additions and 4 deletions

View File

@ -29,10 +29,7 @@ export default (orderingConfigName: MaybeRef<RouteWithPreferences | null>) => {
field: (str[0] === '-' || str[0] === '+' ? str.slice(1) : str) as OrderingField
})
const onOrderingUpdate = (fn: () => void) => {
const stop = watch(config, fn)
return stop
}
const onOrderingUpdate = (fn: () => void) => watch(config, fn)
return {
paginateBy,