@stagewise/toolbar-react
Advanced tools
+2
-5
@@ -7,11 +7,8 @@ import { initToolbar } from "@stagewise/toolbar"; | ||
| }) { | ||
| if (!enabled) { | ||
| return null; | ||
| } | ||
| const isLoaded = useRef(false); | ||
| useEffect(() => { | ||
| if (isLoaded.current) return; | ||
| if (isLoaded.current || !enabled) return; | ||
| isLoaded.current = true; | ||
| initToolbar(config); | ||
| }, [config]); | ||
| }, [config, enabled]); | ||
| return null; | ||
@@ -18,0 +15,0 @@ } |
@@ -9,11 +9,8 @@ (function(global, factory) { | ||
| }) { | ||
| if (!enabled) { | ||
| return null; | ||
| } | ||
| const isLoaded = react.useRef(false); | ||
| react.useEffect(() => { | ||
| if (isLoaded.current) return; | ||
| if (isLoaded.current || !enabled) return; | ||
| isLoaded.current = true; | ||
| toolbar.initToolbar(config); | ||
| }, [config]); | ||
| }, [config, enabled]); | ||
| return null; | ||
@@ -20,0 +17,0 @@ } |
+2
-2
| { | ||
| "name": "@stagewise/toolbar-react", | ||
| "private": false, | ||
| "version": "0.4.8", | ||
| "version": "0.4.9", | ||
| "type": "module", | ||
@@ -24,3 +24,3 @@ "files": [ | ||
| "dependencies": { | ||
| "@stagewise/toolbar": "0.4.8" | ||
| "@stagewise/toolbar": "0.4.9" | ||
| }, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
+6
-6
@@ -34,3 +34,3 @@ # <img src="https://github.com/stagewise-io/assets/blob/main/media/logo.png?raw=true" alt="stagewise logo" width="48" height="48" style="border-radius: 50%; vertical-align: middle; margin-right: 8px;" /> stagewise | ||
| ### 1. π§© **Install the vs-code extension** | ||
| ### 1. π§© **Install the code editor extension (Cursor, Windsurf, VS Code)** | ||
@@ -273,7 +273,7 @@ Install the extension here: https://marketplace.visualstudio.com/items?itemName=stagewise.stagewise-vscode-extension | ||
| | -------------- | -------------- | | ||
| | Cursor | β | | ||
| | GitHub Copilot | β | | ||
| | Windsurf | β | | ||
| | Cline | β | | ||
| | Roo-code | β | | ||
| | Cursor | β | | ||
| | GitHub Copilot | β | | ||
| | Windsurf | β | | ||
| | Cline | β | | ||
| | Roo Code | β | | ||
@@ -280,0 +280,0 @@ |
46373
-0.03%44
-12%+ Added
- Removed
Updated