@vue-composable/core
v1.0.0-dev.21
Published
@vue-composable/core
Downloads
7
Maintainers
Readme
@vue-composable/core
This package contains core functionality for vue-composable
vue-next
Installing
# install with yarn
yarn add @vue/composition-api @vue-composable/core
# install with npm
npm install @vue/composition-api @vue-composable/core
Documentation
Check our documentation
Functionality
Date
- useNow : Return reactive custom timer with specified refresh rate
- useDateNow : Returns reactive
Date.now()
with custom refresh rate - usePerformanceNow : Returns reactive
performance.now()
with custom refresh rate
Pagination
- usePagination : Provides framework to implement reactive pagination
- useArrayPagination : Uses usePagination to paginate an array
Validation
- Validation - model based validation inspired by vuelidate
i18n
Format
Promise
- usePromise : Handles promise states
- promiseLazy - Sugar for usePromise
lazy:true
- useCancellablePromise : Uses usePromise and prevent setting
result
if canceled - useRetry : Allows to retry if a promise throws an exception
General
- useDebounce: debounce functionality
Contributing
- Fork it!
- Create your feature branch:
git checkout -b feat/new-composable
- Commit your changes:
git commit -am 'feat(composable): add a new composable'
- Push to the branch:
git push origin feat/new-composable
- Submit a pull request