insomnia/packages/insomnia-app/app/ui/containers/app-hooks.tsx
Opender Singh 6a1abbf3db
Migrate collections into their remote space (#3876)
* initial implementation

* take vcs as a parameter (so it's easier to mock and test)

* update console log and exit early if not logged in

* add unit tests for migration

* add async filter and replace vcs find by root document

* lint fix

* fix memory driver and add test for hasProjectForRootDocument

* setup check on interval

* move migration logic and interval from main process to render process, because session state and a VCS instance dont work in the main process yet

* update test

* replace constructor with static class creator

* replace interval with login logout hook

* remove effect helpers

* empty commit to trigger CI
2021-08-10 23:35:05 +00:00

10 lines
171 B
TypeScript

import { FC } from 'react';
import { useSyncMigration } from '../hooks/use-sync-migration';
export const AppHooks: FC = () => {
useSyncMigration();
return null;
};