Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate the ConfigState #6154

Closed
mehmet-erim opened this issue Nov 11, 2020 · 0 comments · Fixed by #6156
Closed

Deprecate the ConfigState #6154

mehmet-erim opened this issue Nov 11, 2020 · 0 comments · Fixed by #6156

Comments

@mehmet-erim
Copy link
Contributor

ConfigState has been deprecated. ConfigState methods and getters were split into two files named EnvironmentService and ConfigStateService. Use the ConfigStateService or the EnvironmentService instead of the ConfigState.

Breaking Changes

  • ConfigState reference removed from CoreModule. If you want to use the ConfigState (not recommend), you should pass the state to NgxsModule as shown below:
//app.module.ts

import { ConfigState } from '@abp/ng.core';

// ...

imports: [ 
   NgxsModule.forRoot([ConfigState]),
// ...
  • ConfigState actions (GetAppConfiguration, SetEnvironment) can no longer listen via NGXS Actions. Subscribe to ConfigStateService methods that return RxJs stream instead.

  • Use LocalizationService when getting a localization.

  • Changed the getPasswordValidators function argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant