frandiox / vite-ssr

Use Vite for server side rendering in Node
MIT License
823 stars 91 forks source link

[Vue warn]: inject() can only be used inside setup() or functional components. #186

Open gitsheny opened 1 year ago

gitsheny commented 1 year ago

when i call my API directly from Vue components in client. i use useContext() and vue warn 'inject() can only be used inside setup() or functional components.'