Files
AFFiNE-Mirror/apps/core/src/components/affine
2023-08-31 13:15:55 -05:00
..
2023-07-18 16:53:10 +00:00

Affine Official Workspace Component

This component need specific configuration to work properly.

Configuration

SWR

Each component use SWR to fetch data from the API. You need to provide a configuration to SWR to make it work.

const Wrapper = () => {
  return (
    <AffineSWRConfigProvider>
      <Component />
    </AffineSWRConfigProvider>
  );
};