-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/disconnecting resets the shelf #184
Fix/disconnecting resets the shelf #184
Conversation
…helves resets to the initial state.
@gabrieljolvm is attempting to deploy a commit to the Shared Blockful's projects Team on Vercel. A member of the Team first needs to authorize it. |
); | ||
}; | ||
fetchApprove(); | ||
}, [nftAuthUser, allSelectedNftsApproved]); |
Check warning
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Warning
components/01-atoms/SwapContext.tsx
Outdated
validateAddressToSwap: ( | ||
_authedUser: EthereumAddress, | ||
_inputEnsAddress: string | null | undefined | ||
_inputEnsAddress: string | null | undefined, |
Check failure
Code scanning / ESLint
Disallow unused variables Error
components/01-atoms/SwapContext.tsx
Outdated
@@ -41,6 +59,14 @@ | |||
nftInputUser: [], | |||
destinyChain: SupportedNetworks.SEPOLIA, | |||
setDestinyChain: () => {}, | |||
setTimeDate: () => {}, |
Check failure
Code scanning / ESLint
Disallow empty functions Error
components/01-atoms/SwapContext.tsx
Outdated
@@ -41,6 +59,14 @@ | |||
nftInputUser: [], | |||
destinyChain: SupportedNetworks.SEPOLIA, | |||
setDestinyChain: () => {}, | |||
setTimeDate: () => {}, | |||
timeDate: BigInt(1), | |||
setAllSelectedNftsAreApproved: () => {}, |
Check failure
Code scanning / ESLint
Disallow empty functions Error
components/01-atoms/SwapContext.tsx
Outdated
timeDate: BigInt(1), | ||
setAllSelectedNftsAreApproved: () => {}, | ||
allSelectedNftsApproved: false, | ||
setAuthedUserNftsApprovalStatus: () => {}, |
Check failure
Code scanning / ESLint
Disallow empty functions Error
); | ||
}; | ||
fetchApprove(); | ||
}, [nftAuthUser, allSelectedNftsApproved]); |
Check warning
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Warning
lib/client/hooks/subgraphQueries.ts
Outdated
@@ -0,0 +1,46 @@ | |||
/* eslint-disable @typescript-eslint/no-var-requires */ | |||
require("dotenv").config(); |
Check failure
Code scanning / ESLint
Disallow `require` statements except in import statements Error
components/01-atoms/SearchBar.tsx
Outdated
getUserAddress(); | ||
}, 750); | ||
return () => clearTimeout(requestDelay); | ||
}, [inputAddress]); |
Check warning
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Warning
components/01-atoms/SwapContext.tsx
Outdated
} | ||
|
||
export const SwapContext = React.createContext<SwapContextProps>({ | ||
inputAddress: "", | ||
validatedAddressToSwap: "", | ||
setValidatedAddressToSwap: () => {}, |
Check failure
Code scanning / ESLint
Disallow empty functions Error
} | ||
|
||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [validatedAddressToSwap]); |
Check warning
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Warning
hey yo @gabrieljolvm ! |
…when the user disconnects
@heronlancellot sorry, it's fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIce!
This resolutions was pre-merge and might not fix the issue. Look into #222 first to see if closes this issues! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closed by #222 |
Closes #160
now the shelves resets to the initial state when the user disconnects via sidebar menu.