diff --git a/lib/utils/riverpod/riverpod_providers/generated_providers/application_customizer_provider.dart b/lib/utils/riverpod/riverpod_providers/generated_providers/application_customizer_provider.dart index 5a0b955b..b7754ee7 100644 --- a/lib/utils/riverpod/riverpod_providers/generated_providers/application_customizer_provider.dart +++ b/lib/utils/riverpod/riverpod_providers/generated_providers/application_customizer_provider.dart @@ -28,12 +28,17 @@ part 'application_customizer_provider.g.dart'; /// Only used for the app customizer @riverpod class ApplicationCustomizer extends _$ApplicationCustomizer { - @override - Future build() async { - final customization = ApplicationCustomization.defaultCustomization.copyWith(disabledFeatures: AppFeature.values.toSet()); - return customization; + static ApplicationCustomization get initialState => + _initialState ?? ApplicationCustomization.defaultCustomization.copyWith(disabledFeatures: AppFeature.values.toSet()); + static ApplicationCustomization? _initialState; + + static void setInitialState(ApplicationCustomization initialState) { + _initialState = initialState; } + @override + Future build() async => initialState; + Future setState(ApplicationCustomization newState) async { state = AsyncValue.data(newState); return newState;