chore: optimize imports and useShallow#3740
chore: optimize imports and useShallow#3740waleedlatif1 merged 4 commits intosimstudioai:stagingfrom
Conversation
PR SummaryMedium Risk Overview Optimizes bundle/runtime loading via additional dynamic imports (e.g., Refines data fetching behavior by adding Adjusts image handling by removing Written by Cursor Bugbot for commit b99cece. This will update automatically on new commits. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR applies a broad set of performance and bundle-size optimisations across the Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph Before["Before: Broad invalidation"]
M1[Mutation onSuccess] --> I1["invalidateQueries(a2aAgentKeys.all)\n['a2a-agents']"]
I1 --> L1["✅ list queries"]
I1 --> D1["✅ detail queries"]
I1 --> B1["✅ byWorkflow queries"]
end
subgraph After["After: Scoped invalidation"]
M2[Mutation onSuccess] --> I2["invalidateQueries(a2aAgentKeys.lists())\n['a2a-agents', 'list']"]
M2 --> I3["invalidateQueries(a2aAgentKeys.detail(id))\n['a2a-agents', 'detail', id]"]
I2 --> L2["✅ list queries"]
I3 --> D2["✅ detail queries"]
B2["❌ byWorkflow queries\nnot invalidated — stale data"]
end
subgraph Other["Other optimisations (all correct)"]
S1["useShallow added to 15+ store subscriptions"]
S2["Dynamic imports: socket.io-client, JSZip, toPng, Particles"]
S3["keepPreviousData on 9 query hooks"]
S4["React cache() wrapping getSession"]
S5["optimizePackageImports for 17 libraries"]
end
Reviews (1): Last reviewed commit: "chore: optimize imports and useShallow" | Re-trigger Greptile |
974cd53 to
0be1721
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/variables/variables.tsx
Outdated
Show resolved
Hide resolved
* chore: fix conflicts * chore: fix review changes * chore: fix review changes * chore: fix review changes

Summary
Type of Change
Testing
Checklist