Skip to content
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

chore: bump react and @types/react #3692

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"@solana/web3.js": "workspace:*",
"@wallet-standard/core": "^1.1.0",
"@wallet-standard/react": "^1.0.0",
"react": "^18.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-error-boundary": "^4.1.2",
"swr": "^2.2.5"
},
"devDependencies": {
"@solana/wallet-standard-features": "^1.2.0",
"@types/react": "^18.3",
"@types/react": "^19.0",
"@types/react-dom": "^19.0",
"@vitejs/plugin-react-swc": "^3.7.2",
"eslint-plugin-react-refresh": "^0.4.16",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
},
"devDependencies": {
"@solana/codecs-core": "workspace:*",
"@types/react": "^18",
"@types/react": "^19",
"@types/react-test-renderer": "^18",
"react": "^18",
"react": "^19",
"react-error-boundary": "^4.1.2",
"react-test-renderer": "^18"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function useWalletAccountTransactionSendingSigner<TWalletAccount extends
uiWalletAccount: TWalletAccount,
chain: `solana:${string}`,
): TransactionSendingSigner<TWalletAccount['address']> {
const encoderRef = useRef<ReturnType<typeof getTransactionEncoder>>();
const encoderRef = useRef<ReturnType<typeof getTransactionEncoder> | null>(null);
const signAndSendTransaction = useSignAndSendTransaction(uiWalletAccount, chain);
return useMemo(
() => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/useWalletAccountTransactionSigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function useWalletAccountTransactionSigner<TWalletAccount extends UiWalle
uiWalletAccount: TWalletAccount,
chain: `solana:${string}`,
): TransactionModifyingSigner<TWalletAccount['address']> {
const encoderRef = useRef<ReturnType<typeof getTransactionCodec>>();
const encoderRef = useRef<ReturnType<typeof getTransactionCodec> | null>(null);
const signTransaction = useSignTransaction(uiWalletAccount, chain);
return useMemo(
() => ({
Expand Down
Loading
Loading