Skip to content

v1.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Nov 04:18
· 4 commits to main since this release

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);
}

// ...