mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
removed redux completely
This commit is contained in:
parent
26e6d8d41b
commit
a4bb07e9cf
323 changed files with 2464 additions and 3348 deletions
|
@ -1,5 +1,5 @@
|
|||
import { useCallback } from 'react';
|
||||
import { FlowDisplay, INode } from '~/redux/types';
|
||||
import { FlowDisplay, INode } from '~/types';
|
||||
|
||||
export const useFlowCellControls = (
|
||||
id: INode['id'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { useCallback } from "react";
|
||||
import { usePersistedState } from "~/hooks/data/usePersistedState";
|
||||
import { experimentalFeatures } from "~/constants/features";
|
||||
import { useCallback } from 'react';
|
||||
import { usePersistedState } from '~/hooks/data/usePersistedState';
|
||||
import { experimentalFeatures } from '~/constants/features';
|
||||
|
||||
enum Layout {
|
||||
Fluid = 'fluid',
|
||||
|
|
|
@ -4,7 +4,6 @@ import { uniq } from 'ramda';
|
|||
import { useFlowStore } from '~/store/flow/useFlowStore';
|
||||
import { runInAction } from 'mobx';
|
||||
import { showErrorToast } from '~/utils/errors/showToast';
|
||||
import { delay } from 'redux-saga/effects';
|
||||
|
||||
export const useFlowLoader = () => {
|
||||
const [isSyncing, setIsSyncing] = useState(false);
|
||||
|
@ -74,7 +73,7 @@ export const useFlowLoader = () => {
|
|||
});
|
||||
|
||||
// wait a little to debounce
|
||||
await delay(1000);
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
} catch (error) {
|
||||
showErrorToast(error);
|
||||
} finally {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { useFlowStore } from '~/store/flow/useFlowStore';
|
||||
import { useCallback } from 'react';
|
||||
import { FlowDisplay } from '~/redux/types';
|
||||
import { FlowDisplay } from '~/types';
|
||||
import { showErrorToast } from '~/utils/errors/showToast';
|
||||
import { postCellView } from '~/api/flow';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue