dosubot[bot] commented on issue #37989:
URL: https://github.com/apache/superset/issues/37989#issuecomment-3906610014

   <!-- Answer -->
   You're right, I apologize for the confusion on the timeline! [PR #36125 was 
merged on November 17, 2025](https://github.com/apache/superset/pull/36125), 
which would indeed be before the v6.0.0 release.
   
   However, the bad news is that there are **known bugs in v6.0.0** affecting 
theme functionality in embedded dashboards:
   
   1. **ThemeContext issue**: [In v6.0.0, the `Loading` component is used as a 
Suspense fallback *outside* of `EmbeddedContextProviders`, causing it to fail 
with "useTheme() could not find a 
ThemeContext"](https://github.com/apache/superset/issues/35167). This 
architectural issue breaks theme propagation in embedded mode.
   
   2. **Filter issues with themes**: [When custom themes are applied in v6.0.0, 
filters cannot be applied and the Apply button becomes 
disabled](https://github.com/apache/superset/issues/35131).
   
   So `setThemeMode()` should exist in your version, but these underlying theme 
context bugs may be why it's not working as expected. The static theme 
selection works because it's applied at a different point in the component 
lifecycle.
   
   You might want to check the browser console for any ThemeContext-related 
errors. The fix requires restructuring how `ThemeProvider` wraps the Suspense 
boundaries in the embedded route.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/8d9ce81e-b551-4265-8e42-55071a0fa072?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/8d9ce81e-b551-4265-8e42-55071a0fa072?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/8d9ce81e-b551-4265-8e42-55071a0fa072?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/8d9ce81e-b551-4265-8e42-55071a0fa072?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/8d9ce81e-b551-4265-8e42-55071a0fa072?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/8d9ce81e-b551-4265-8e42-55071a0fa072?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/8d9ce81e-b551-4265-8e42-55071a0fa072?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=You%27re%20right%2C%20I%20apologize%20for%20the%20confusion%20on%20the%20timeline%21%20%5BPR%20%2336125%20was%20merged%20on%20November%2017%2C%202025%5D%28https%3A//github.com/apache/superset/pull/36125%29%2C%20which%20would%20indeed%20be%20before%20the%20v6.0.0%20release.%0A%0AHowever%2C%20the%20bad%20news%20is%20that%20there%20are%20%2A%2Aknown%20bugs%20in%20v6.0.0%2A%2A%20affecting%20theme%20functionality%20in%20embedded%20dashboards%3A%0A%0A1.%20%2A%2AThemeContext%20issue%2A%2A%3A%20%5BIn%20v6.0.0%2C%20the%20%60Loading%60%20component%20is%20used%20as%20a%20Suspense%20fallback%20%2Aoutside%2A%20of%20%60EmbeddedContextProviders%60%2C%20causing%20it%20to%20fail%20with%20%22useTheme%28%29%20could%20not%20find%20a%20ThemeContext%22%5D%28https%3A//gi
 
thub.com/apache/superset/issues/35167%29.%20This%20architectural%20issue%20breaks%20theme%20propagation%20in%20embedded%20mode.%0A%0A2.%20%2A%2AFilter%20issues%20with%20themes%2A%2A%3A%20%5BWhen%20custom%20themes%20are%20applied%20in%20v6.0.0%2C%20filters%20cannot%20be%20applied%20and%20the%20Apply%20button%20becomes%20disabled%5D%28https%3A//github.com/apache/superset/issues/35131%29.%0A%0ASo%20%60setThemeMode%28%29%60%20should%20exist%20in%20your%20version%2C%20but%20these%20underlying%20theme%20context%20bugs%20may%20be%20why%20it%27s%20not%20working%20as%20expected.%20The%20static%20theme%20selection%20works%20because%20it%27s%20applied%20at%20a%20different%20point%20in%20the%20component%20lifecycle.%0A%0AYou%20might%20want%20to%20check%20the%20browser%20console%20for%20any%20ThemeContext-related%20errors.%20The%20fix%20requires%20restructuring%20how%20%60ThemeProvider%60%20wraps%20the%20Suspense%20boundaries%20in%20the%20embedded%20route.)&nbsp;[![Join
 Discord](https://img.shie
 
lds.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37989)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to