Skip to content

fix: wait for config before rendering feature tables - #83

Merged
bakirFS merged 1 commit into
Flagsmith:mainfrom
gijsmin:fix/wait-for-config-before-feature-tables
Sep 14, 2026
Merged

bakirFS merged 1 commit into
Flagsmith:mainfrom
gijsmin:fix/wait-for-config-before-feature-tables

Conversation

@gijsmin

@gijsmin gijsmin commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Since 1.2.0 (#65) the issue panel crashes on any issue with a linked feature:

TypeError: can't access property "flagsmithApp", s is undefined
    children IssueFeatureTables.tsx:172

IssueFeatureTables loads flagsmithApp with usePromise(readConfig, []), which is undefined on the first render, but still does config!.flagsmithApp. The tables are already non-empty on that render so it throws every time.

Moved readConfig into IssueFeaturesPanel with the other async calls, added it to the ready gate and pass flagsmithApp down. A failing readConfig now goes through setError instead of an unhandled rejection.

Since 1.2.0 flagsmithApp is loaded async in IssueFeatureTables but read
synchronously on the first render, which throws on every issue with
linked features. Load it in IssueFeaturesPanel with the other async data
so the ready gate and setError cover it.
@gijsmin
gijsmin requested a review from a team as a code owner September 14, 2026 09:32
@gijsmin
gijsmin requested review from talissoncosta and removed request for a team September 14, 2026 09:32
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: e0bfa9e7-9c36-424a-9d72-52d3f4d3fb08


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bakirFS
bakirFS deployed to development September 14, 2026 11:50 — with GitHub Actions Active
@bakirFS
bakirFS merged commit d8c6322 into Flagsmith:main Sep 14, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
development — 5d826e32 Deployed Sep 14, 2026 by bakirFS via deploy / Deploy to development #60
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