-
Notifications
You must be signed in to change notification settings - Fork 203
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
feat: don't require wallet connection #1452
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
useEffect(() => { | ||
if (isConnected && connector) { | ||
const walletName = getWalletName(connector.name) | ||
trackEvent('Connect Wallet Click', { walletName }) | ||
} | ||
|
||
// set a custom tag in sentry to filter issues by connected wallet.name | ||
Sentry.setTag('wallet.name', connector?.name ?? '') | ||
}, [isConnected, connector]) | ||
|
||
useEffect(() => { | ||
Sentry.setTag('network.parent_chain_id', parentChain.id) | ||
Sentry.setTag( | ||
'network.parent_chain_rpc_url', | ||
getBaseUrl(rpcURLs[parentChain.id] ?? '') | ||
) | ||
Sentry.setTag('network.child_chain_id', childChain.id) | ||
Sentry.setTag( | ||
'network.child_chain_rpc_url', | ||
getBaseUrl(rpcURLs[childChain.id] ?? '') | ||
) | ||
}, [childChain.id, parentChain.id]) |
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.
Extracted these into useSyncConnectedChainToAnalytics
@@ -352,47 +258,6 @@ Object.keys(localStorage).forEach(key => { | |||
} | |||
}) | |||
|
|||
function ConnectedChainSyncer() { |
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.
Extracted into useSyncConnectedChainToQueryParams
import { | ||
getCustomChainsFromLocalStorage, | ||
xaiTestnet, | ||
xai | ||
} from '../util/networks' | ||
import { mapCustomChainToNetworkData } from '../util/networks' | ||
|
||
const App = dynamic(() => import('../components/App/App'), { | ||
ssr: false, | ||
loading: () => ( |
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.
I think it's much nicer without the loader
There's an issue when user connect, balances are not updated. This will be fixed in #1479 |
Closes FS-236