Skip to content

Conversation

@wganders2k
Copy link

@wganders2k wganders2k commented Nov 19, 2025

The Bug:
( Fixes #233 )
When opening a saved Honkdex instance (e.g., Gen 3), the constructor in HonkdexBootstrappable.ts was initializing with the default generation (Gen 9) before checking the saved state.

This triggered the safety check if (this.calcdexState.gen !== this.gen), causing the app to treat the mismatch as invalid and generating a new random UUID (blank instance) instead of loading the saved data.

The Fix:
Updated the constructor to check if calcdexState exists for the provided instanceId. If it does, use the saved gen and format instead of the defaults.

Apologies if this misunderstands the architecture, I'm not very experienced with react. In particular, this fix ignores why this.gen is defaulting to gen 9 every time, but ¯\_(ツ)_/¯.

    The Bug:
    When opening a saved Honkdex instance (e.g., Gen 3), the constructor in HonkdexBootstrappable.ts was initializing with the default generation (Gen 9) before checking the saved state.

    This triggered the safety check if (this.calcdexState.gen !== this.gen), causing the app to treat the mismatch as invalid and generating a new random UUID (blank instance) instead of loading the saved data.

    The Fix:
    Updated the constructor to check if calcdexState exists for the provided instanceId. If it does, use the saved gen and format instead of the defaults.
@PR0FY
Copy link

PR0FY commented Jan 25, 2026

Can we PLEASE add this, such a simple fix that is affecting a ton of the pokemmo and other pokemon fangame/mmorpg players using honkdex with older gen. Thank you

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.

[BUG] Unable to access any saved (non gen-9) honkdexes

3 participants