mirror of https://github.com/jetkvm/kvm.git
The getLocalVersion useEffect had getLocalVersion and hasPermission in its dependency array. Since these functions are recreated on every render, this caused an infinite loop of RPC calls when refreshing the primary session, resulting in 100+ identical getLocalVersion requests. Fix: Remove function references from dependency array, only keep appVersion which is the actual data dependency. The effect now only runs once when appVersion changes from null to a value. This is the same pattern as the previous fix for getVideoState, getKeyboardLedState, and getKeyDownState. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .env.cloud-development | ||
| .env.cloud-production | ||
| .env.cloud-staging | ||
| .gitignore | ||
| .prettierrc | ||
| dev_device.sh | ||
| eslint.config.cjs | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite-env.d.ts | ||
| vite.config.ts | ||