assignment_late
為何捐款
travel_explore
API 瀏覽器
小工具
Vue 元件
Ajax Bar
頭像
徽章
橫幅
Bar
麵包屑
卡片
輪播
聊天訊息
晶片
圓形進度條
色彩選擇器
對話框
編輯器 - WYSIWYG
擴展項目
浮動操作按鈕
圖示 (Icon)
圖片 (Img)
無限滾動 (Infinite Scroll)
內部載入中 (Inner Loading)
交叉 (Intersection)
旋鈕 (Knob)
線性進度條 (Linear Progress)
列表 & 列表項目 (List & List Items)
標記表格 (Markup Table)
選單 (Menu)
無伺服器端渲染 (No SSR)
分頁 (Pagination)
視差 (Parallax)
彈出式編輯 (Popup Edit)
彈出式代理 (Popup Proxy)
下拉重新整理 (Pull to refresh)
評分 (Rating)
響應式 (Responsive)
滾動區域 (Scroll Area)
分隔線 (Separator)
骨架 (Skeleton)
滑動項目 (Slide Item)
滑動轉場 (Slide Transition)
間距 (Space)
旋轉器 (Spinners)
分割器 (Splitter)
步進器 (Stepper)
表格 (Table)
頁籤 (Tabs)
頁籤面板 (Tab Panels)
時間軸 (Timeline)
工具列 (Toolbar)
工具提示 (Tooltip)
樹狀結構 (Tree)
上傳器 (Uploader)
影片 (Video)
虛擬滾動 (Virtual Scroll)
developer_mode
Vue 組合式函式 (Vue Composables)
安全性 (security)
安全性 (Security)
建置 (build)
Quasar CLI (搭配 Vite) (Quasar CLI (with Vite))
升級指南 (Upgrade guide)
NEW!
quasar.config 檔案 (The quasar.config file)
將專案轉換為搭配 Vite 的 CLI (Convert project to CLI with Vite)
瀏覽器兼容性 (Browser Compatibility)
支援 TypeScript (Supporting TypeScript)
目錄結構 (Directory Structure)
命令列表 (Commands List)
CSS 預處理器 (CSS Preprocessors)
路由 (Routing)
懶加載 - 代碼分割 (Lazy Loading - Code Splitting)
處理資源 (Handling Assets)
啟動檔案 (Boot Files)
預取功能 (Prefetch Feature)
API 代理 (API Proxying)
處理 Vite (Handling Vite)
處理 process.env (Handling process.env)
使用 Pinia 進行狀態管理 (State Management with Pinia)
使用 Vuex 進行狀態管理 (State Management with Vuex)
Linter
測試 & 審核 (Testing & Auditing)
開發行動應用程式
Ajax 請求
開放開發伺服器給公眾
建置 (build)
Quasar CLI (搭配 Webpack)
stars
Icon Genie CLI
note_add
App Extensions
The useHydration composable is useful when you build for SSR (but can be used for non SSR builds as well). It is a lower level util of the QNoSsr component.
Syntax
import { useHydration } from 'quasar'
setup () {
const { isHydrated } = useHydration()
}
content_paste
Copied to clipboard
function useHydration(): {
isHydrated: Ref<boolean>;
};
content_paste
Copied to clipboard
Example
<template>
<div>
<div v-if="isHydrated">
Gets rendered only after hydration.
</div>
</div>
</template>
<script>
import { useHydration } from 'quasar'
export default {
setup () {
const { isHydrated } = useHydration()
return {
isHydrated
}
}
}
</script>
content_paste
Copied to clipboard
Ready for more?
Caught a mistake?Edit this page in browser
1. Introduction
2. Syntax
3. Example
版權 © 2015 年至今 PULSARDEV SRL, Razvan Stoenescu
本網站的設計與 Dreamonkey Srl 合作