-
-
Notifications
You must be signed in to change notification settings - Fork 64
feat(vite): cache rpc response #128
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for vite-devtools ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
9f38406 to
009dbbd
Compare
commit: |
|
We might want to do that inside getDevToolsRpcClient and also provide a API to invalidate the cache |
882c507 to
f2829ae
Compare
f2829ae to
d91a348
Compare
Done! |
| functions: string[] | ||
| } | ||
|
|
||
| // @TODO: should be moved to birpc-x? |
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.
need to discussion.
|
|
||
| const functions = await rpc.value.$call('vite:core:list-rpc-functions') | ||
|
|
||
| // TODO: add cacheable option to birpc-x and use it here |
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.
TODO
|
Hi @antfu, I have refactored it, and I will send a PR to birpc if this solution is ok. |
9d6b898 to
d025a8a
Compare
Description
Cache rpc response for Vite DevTools.