Skip to content

Commit

Permalink
fix(state): fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Dec 5, 2019
1 parent 2410170 commit 5051792
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import { History } from 'history'
import LocationState = History.LocationState

import { stringify } from 'query-string'
import {
createContext,
useContext,
useEffect,
useMemo,
useState
} from 'react'
import { createContext, useContext, useEffect, useMemo, useState } from 'react'
import { create, StoreApi, UseStore } from 'zustand'
// tslint:disable-next-line:no-submodule-imports
import shallow from 'zustand/shallow'
Expand Down Expand Up @@ -97,6 +91,8 @@ export const factoryParameters = <T = object>(
)

const initialRegisterState = useMemo(() => {
// thisValues will be mutated by applyFlatConfigToState, that's why we init it with a copy of
// the initial state.
const thisValues = { ...defaultInitialValues }
const query = applyFlatConfigToState(
flatConfig,
Expand Down

0 comments on commit 5051792

Please sign in to comment.