Skip to content

Commit 1a5f039

Browse files
committed
Update doc for getId()
1 parent f3635ef commit 1a5f039

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ app.use(store.initializeMiddleware());
146146

147147
Check if the store has been initialized or not.
148148

149-
- `@params {boolean}` - Returns either true or false.
149+
- `@returns {boolean}` - Returns either true or false.
150150

151151
```js
152152
if (store.isInitialized()) {
@@ -189,9 +189,10 @@ const foo = store.find('foo');
189189

190190
### getId()
191191

192-
Gets the unique domain id created for the current context/scope.
192+
Gets the unique store id created for the current context/scope.
193+
Example: If used in express, it returns unique store id per request.
193194

194-
- `@returns {string | undefined}` - Returns the unique domain id.
195+
- `@returns {string | undefined}` - Returns the unique store id.
195196

196197
```js
197198
const requestIdentifier = store.getId();

0 commit comments

Comments
 (0)