From 7e4a1ea4cbdf8e9370762418f1bdc1a5871fa65f Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 23 Nov 2021 10:05:07 +0100 Subject: [PATCH] docs/deprecations: add note about working around AppTheme type Signed-off-by: Patrik Oldsberg --- docs/api/deprecations.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/api/deprecations.md b/docs/api/deprecations.md index 774c8ef03d..aca7e42d96 100644 --- a/docs/api/deprecations.md +++ b/docs/api/deprecations.md @@ -54,3 +54,10 @@ const darkTheme = { ), }; ``` + +Note that the existing `AppTheme` type still requires the `theme` property to be +set since it's the type that's consumed in the `AppThemeApi`, and it would be a +breaking change to make `theme` optional. This means that if you currently +construct the themes that you pass on to `createApp` using `AppTheme` as an +intermediate type, you will need to work around this in some way, for example by +passing the themes to `createApp` more directly.