mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-10 08:13:46 +00:00
Replace the per-prop ref-sync effects in useAppBridge with render-time ref assignments, leaving a single effect for the imperative AppBridge lifecycle. The refs still shield the once-per-resource bridge from unstable callbacks like ask, matching the latest-value-ref idiom used elsewhere in the app. Route the immutable app HTML fetch through queryClient.fetchQuery keyed on QueryKeys.mcpAppResourceHtml so it shares the standard React Query cache and in-flight dedup, then remove the bespoke Map cache from mcpApps. readMCPResource and fetchMCPResourceHtml no longer thread a userId that was only ever a cache key and never sent to the server. |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| sw | ||
| test | ||
| babel.config.cjs | ||
| check_updates.sh | ||
| index.html | ||
| jest.config.cjs | ||
| nginx.conf | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||