BMAD-METHOD/.claude/rules/qwik-basic-cursorrules-prom.../qwik-js---best-practices.mdc

10 lines
440 B
Plaintext

---
description: Applies Qwik.js best practices for files within the src directory, focusing on lazy-loading, reactive state, data fetching, and side effects.
globs: src/**/*.*
---
- Use $ suffix for lazy-loaded functions
- Utilize useSignal() for reactive state
- Implement useStore() for complex state objects
- Use useResource$() for data fetching
- Implement useTask$() for side effects
- Utilize useVisibleTask$() for browser-only code