v1.9.0
1.9.0 (2022-11-21)
Bug Fixes
- allow use mutate to pre fetch data in key before use in hook (e9d4e00)
- use shallowReadonly instead deep readonly (712a498)
Features
- create vue devtools plugin (0e8a58d)
You can register the devtools plugin only in dev mode with vite this way
import { setupDevtools } from 'swr-vue';
// ...
// The devtools code will be removed in the production build
if (import.meta.env.DEV) {
app.use(setupDevtools);
}
// ...