Skip to content

Commit

Permalink
Update index.demo-entry.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jahnli authored Jan 24, 2025
1 parent c203042 commit 88b4097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discrete/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Discrete API

Available since `2.29.1`.

If you want to use `useDialog`, `useMessage`, `useNotification`, `useLoadingBar`, `useModal` outside `setup`, you can use `createDiscreteApi` to create corresponding API.

<n-alert title="Caveat" type="warning" :bordered="false">
1. Discrete API won't be affected by <n-text code>n-xxx-provider</n-text> in current app. If you need to share config, you should sync them manually. Also, you'd better not using discrete API and normal API together. 2. Do not call <n-text code>createDiscreteApi</n-text> in <n-text code>setup</n-text> since it may cause some unexpected behaviors.
</n-alert>

Available since `2.29.1`.

## Demo

```demo
Expand Down

0 comments on commit 88b4097

Please sign in to comment.