1.3.2 • Published 8 months ago

swr-devtools-panel v1.3.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

swr-devtools-panel

npm version

This package is a React component of SWR Devtools panel. If you want to use this component as a React component, you can place it on your own.

This package hasn't been stable yet, so its interface would be changed in the future releases.

Install

// install peerDependencies
$ yarn add react swr styled-components
$ yarn add swr-devtools-panel

How to use

import { useSWRConfig } from "swr";
import { SWRDevToolsPanel } from "swr-devtools-panel";

const App = () => {
  const { cache } = useSWRConfig();
  return (
    <SWRDevToolsPanel cache={cache}>
      <Page />
    </SWRDevToolsPanel>
  );
}

LICENSE

MIT

1.3.2

8 months ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

3 years ago