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

Create helper function for prefetching important data #61

Open
Frewacom opened this issue May 26, 2021 · 0 comments
Open

Create helper function for prefetching important data #61

Frewacom opened this issue May 26, 2021 · 0 comments
Labels
enhancement New feature or request feature New features SDK

Comments

@Frewacom
Copy link
Member

Frewacom commented May 26, 2021

E.g:

import {  prefetch } from '@nationskollen/sdk'

// in your app loader 
prefetch()

will prefetch the nations and any other (?) data that is needed on load.

https://swr.vercel.app/docs/prefetching

@Frewacom Frewacom added enhancement New feature or request feature New features SDK labels May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New features SDK
Projects
None yet
Development

No branches or pull requests

1 participant