-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add to embedded ui link to plan2svg converter #1619
Conversation
@@ -33,6 +33,9 @@ | |||
"settings.usePaginatedTables.title": "Use paginated tables", | |||
"settings.usePaginatedTables.description": " Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable", | |||
|
|||
"settings.useShowPlanToSvg.title": "Use show plan to svg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
sounds strange...maybe Plan to svg
will be enough?
const [getPlanToSvg, {isLoading, isUninitialized}] = | ||
planToSvgQueryApi.usePlanToSvgQueryMutation(); | ||
|
||
React.useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to get rid of useEffect
? What if we initialize mutation when PlanToSvgButton
is clicked?
getPlanToSvg({plan, database}) | ||
.unwrap() | ||
.then((result) => { | ||
if (blobUrl) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets remove this check. blobUrl
will be revoked in cleanup function of useEffect
.
Closes #1543
Stand
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Bundle Size: 🔺
Current: 66.07 MB | Main: 66.06 MB
Diff: +0.00 MB (0.01%)
ℹ️ CI Information