Skip to content

Commit fa64aae

Browse files
authored
Fix: readme of modal module (#1940)
1 parent 852c41f commit fa64aae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shared/modal/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ The modal is built from three main parts:
3535
In your block’s JS file (e.g., `view.js`):
3636

3737
```js
38-
import { createModalController } from '../shared/modal';
38+
import { createModalStore } from '../shared/modal';
3939
```
4040

4141
### 2. Initialize the Controller
4242

4343
Pass your block's namespace to set up modal state handling:
4444

4545
```js
46-
createModalController('activitypub/your-block-name');
46+
createModalStore('activitypub/your-block-name');
4747
```
4848

4949
#### Why Namespace Matters
5050

5151
#### Why the Namespace Matters
5252

53-
The namespace you pass to `createModalController()` should match your block’s namespace because the WordPress Interactivity API merges all stores that share the same namespace.
53+
The namespace you pass to `createModalStore()` should match your block’s namespace because the WordPress Interactivity API merges all stores that share the same namespace.
5454

5555
This means:
5656

0 commit comments

Comments
 (0)