Skip to content

Fix duplicate React keys in library list#8

Merged
Promises merged 4 commits into
Promises:mainfrom
kvmgithub:fix/duplicate-library-keys
May 4, 2026
Merged

Fix duplicate React keys in library list#8
Promises merged 4 commits into
Promises:mainfrom
kvmgithub:fix/duplicate-library-keys

Conversation

@kvmgithub
Copy link
Copy Markdown

This PR depends on the previous library fix #7.

The library list can produce duplicate keys when multiple items share the same id.

This change ensures unique keys by combining id (or product id) with the list index.

Tested:

  • Library loads successfully
  • No duplicate key warnings

kvmgithub added 4 commits May 2, 2026 21:41
- Revert incorrect Audible username-based login flow for DE
- Restore standard Amazon OAuth flow for all locales
- Add missing BR locale to Rust core
- Add amazon.com.br domain mapping
- Fix incorrect marketplace IDs (DE, BR)
This PR depends on the DE/BR locale PR.

Activation bytes are required for DRM/decryption, but they should not block OAuth login or account setup.

This change skips activation byte retrieval during login so the login flow can complete after successful token exchange.

Tested:
- DE login succeeds
- token exchange succeeds
- login no longer aborts on activation bytes failure
- Allow the plans field to be null in Audible API responses
- Prevent library sync from failing on nullable plans data
- Include list index in FlatList key
- Prevent duplicate key warnings when duplicate ids are present
@Promises Promises merged commit 2eabcd0 into Promises:main May 4, 2026
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.

2 participants