You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/openapi-storage-key-isolation.md
+10-18Lines changed: 10 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,19 @@
2
2
'fumadocs-openapi': minor
3
3
---
4
4
5
-
Add `storageKey` option to isolate localStorage for multiple API instances
5
+
Add `storageKeyPrefix` option to isolate `localStorage` for multiple API instances
6
6
7
-
When using multiple `createOpenAPI()` instances in the same application, the server selection state would bleed between different APIs because they all shared the same hardcoded `'apiBaseUrl'` localStorage key.
8
-
9
-
**Changes:**
10
-
- Added `storageKey` parameter to `OpenAPIOptions` and `CreateAPIPageOptions` interfaces
11
-
- Updated `ApiProvider` to accept and use custom storage keys
12
-
- Defaults to `'apiBaseUrl'` for backward compatibility
7
+
When using multiple `createOpenAPI()` instances in the same application, the server selection state would bleed between different APIs because they all shared the same storage key prefix.
0 commit comments