Skip to content
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: improve caching for KTableData #2545

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

feat: improve caching for KTableData #2545

wants to merge 6 commits into from

Conversation

Justineo
Copy link
Contributor

Summary

  • Update to swrv beta (with isLoading support).
  • Refactored <KTableData>
    • Simplify fetcher state calculation
    • Add fetcher params to SWRV key

Copy link

netlify bot commented Dec 19, 2024

Deploy Preview for kongponents-sandbox ready!

Name Link
🔨 Latest commit 7f2cc5e
🔍 Latest deploy log https://app.netlify.com/sites/kongponents-sandbox/deploys/67911cfb99921b0008d13386
😎 Deploy Preview https://deploy-preview-2545--kongponents-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 19, 2024

Deploy Preview for kongponents ready!

Name Link
🔨 Latest commit 7f2cc5e
🔍 Latest deploy log https://app.netlify.com/sites/kongponents/deploys/67911cfbf4a1a600072aa837
😎 Deploy Preview https://deploy-preview-2545--kongponents.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@adamdehaven adamdehaven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove unused SwrvState import in KTableData.vue line 175

sandbox/pages/SandboxTableData2.vue Outdated Show resolved Hide resolved
@Justineo Justineo marked this pull request as ready for review January 22, 2025 15:54
isValidating: ref(false),
mutate: () => ({}),
})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useSWRV should always be a function. Are there any known scenarios where we might consider taking the other branch? @adamdehaven

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I'm not sure why this code was in place

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing that comes to mind is whether this was added specifically for some testing purposes. I suggest removing it to check if any test cases fail.

@Justineo Justineo requested a review from adamdehaven January 22, 2025 16:08
@kongponents-bot
Copy link
Collaborator

Preview package from this PR in consuming application

In consuming application project install preview version of kongponents generated by this PR:

@kong/kongponents@pr-2545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants