Skip to content

fix: resolve console warnings - #59

Merged
Gaubee merged 1 commit into
mainfrom
fix/warnings
Dec 22, 2025
Merged

Gaubee merged 1 commit into
mainfrom
fix/warnings

Conversation

@Gaubee

@Gaubee Gaubee commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

修复三个控制台警告

1. Stackflow initialActivity 警告

Some plugin overrides an "initialActivity" option...
  • 移除 initialActivity 配置
  • 使用 historySyncPlugin 时应该用 fallbackActivity

2. refreshBalance no adapter 警告

[refreshBalance] No adapter for chain: bfchainv2
  • 降级为 console.debug(仅开发环境)
  • 这是正常情况(初始化时或不支持的链)

3. SendPage 错误边界

An error occurred in the <SendPage> component.
Consider adding an error boundary...
  • 添加 ErrorBoundary 组件
  • 包裹 SendPage 优雅处理渲染错误

1. Stackflow initialActivity warning:
   - Remove initialActivity when using historySyncPlugin
   - The plugin uses fallbackActivity for route matching

2. refreshBalance no adapter warning:
   - Change from warn to debug level (only in DEV)
   - Expected during initialization or for unsupported chains

3. SendPage error boundary:
   - Add react-error-boundary package
   - Create ErrorBoundary wrapper component
   - Wrap SendPage to catch render errors gracefully
@Gaubee
Gaubee merged commit 7585d18 into main Dec 22, 2025
7 checks passed
@Gaubee
Gaubee deleted the fix/warnings branch January 4, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant