-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
feat: improved csv export #11429
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: improved csv export #11429
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import type { Api } from 'nocodb-sdk' | ||
|
||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Loss of precise typing – we now fall back to
With $api: Api<any> we lose compile-time validation of:
Unless there was a cyclic-import problem, prefer keeping the specific type: -import type { Api } from 'nocodb-sdk'
+import type { Api } from 'nocodb-sdk'
+import type { createApiInstance } from '@/composables/useApi' // adjust path
- $api: Api<any>
+ $api: ReturnType<typeof createApiInstance> (or expose a typed Restoring strong typing prevents silent breakages when backend signatures change. Also applies to: 12-13 🤖 Prompt for AI Agents
|
||
const apiPlugin = (nuxtApp) => { | ||
const { api } = useApi() | ||
|
||
|
@@ -7,7 +9,7 @@ const apiPlugin = (nuxtApp) => { | |
|
||
declare module '#app' { | ||
interface NuxtApp { | ||
$api: ReturnType<typeof createApiInstance> | ||
$api: Api<any> | ||
} | ||
} | ||
|
||
|
This file was deleted.
This file was deleted.
This file was deleted.
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.
🛠️ Refactor suggestion
Unsubscribe from poller to avoid endless replicas
$poller.subscribe
returns an unsubscribe handle, but it’s ignored.Leaving subscriptions active after navigation/spa reloads keeps sockets open and triggers duplicate callbacks.
or if the component persists, call
unsub()
inside the completion/failed branch once the job ends.🤖 Prompt for AI Agents