feat: Complete fleet — 94 skills across 10+ domains
Pulled ALL skills from 15 source repositories: - anthropics/skills: 16 (docs, design, MCP, testing) - obra/superpowers: 14 (TDD, debugging, agents, planning) - coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth) - better-auth/skills: 5 (auth patterns) - vercel-labs/agent-skills: 5 (React, design, Vercel) - antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo) - Plus 13 individual skills from various repos Mosaic Stack is not limited to coding — the Orchestrator and subagents serve coding, business, design, marketing, writing, logistics, analysis, and more. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
44
skills/vueuse-functions/references/refAutoReset.md
Normal file
44
skills/vueuse-functions/references/refAutoReset.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
category: Reactivity
|
||||
alias: autoResetRef
|
||||
---
|
||||
|
||||
# refAutoReset
|
||||
|
||||
A ref which will be reset to the default value after some time.
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { refAutoReset } from '@vueuse/core'
|
||||
|
||||
const message = refAutoReset('default message', 1000)
|
||||
|
||||
function setMessage() {
|
||||
// here the value will change to 'message has set' but after 1000ms, it will change to 'default message'
|
||||
message.value = 'message has set'
|
||||
}
|
||||
```
|
||||
|
||||
::: info
|
||||
You can use `triggerRef` to trigger effects after making deep mutations to the inner value of a refAutoReset.
|
||||
:::
|
||||
|
||||
## Type Declarations
|
||||
|
||||
```ts
|
||||
export type RefAutoResetReturn<T = any> = Ref<T>
|
||||
/**
|
||||
* Create a ref which will be reset to the default value after some time.
|
||||
*
|
||||
* @see https://vueuse.org/refAutoReset
|
||||
* @param defaultValue The value which will be set.
|
||||
* @param afterMs A zero-or-greater delay in milliseconds.
|
||||
*/
|
||||
export declare function refAutoReset<T>(
|
||||
defaultValue: MaybeRefOrGetter<T>,
|
||||
afterMs?: MaybeRefOrGetter<number>,
|
||||
): RefAutoResetReturn<T>
|
||||
/** @deprecated use `refAutoReset` instead */
|
||||
export declare const autoResetRef: typeof refAutoReset
|
||||
```
|
||||
Reference in New Issue
Block a user