Skip to content

Common

A set of Vue 3 composables, router helpers, Pinia store helpers, error classes and small utilities shared across the @basmilius ecosystem. The package is opinionated about its peer dependencies — it expects a Vue 3 application with Vue Router and Pinia available — but is otherwise unobtrusive.

Categories

Peer dependencies

The package leans on three peers that you almost certainly already have in any Vue 3 application.

@basmilius/http-client is an optional peer that unlocks the data-oriented composables useDataTable, useDtoForm and useService.

Quick example

ts
import { ref } from 'vue';
import { useDebouncedRef, persistentStringRef } from '@basmilius/common';

const query = persistentStringRef('search:query', null);
const debounced = useDebouncedRef(query, 250);

Continue with installation or jump straight to a category from the sidebar.