You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(StateObject): Rename internal State object to StateObject
BREAKING CHANGE: Renamed internal API `State` object to `StateObject`
- #### Before:
```
import {State} from "ui-router-core";
```
- #### Now:
```
import {StateObject} from "ui-router-core";
```
- #### Motivation:
We'd like to use the `State` name/symbol as a public API. It will be an
ES7/TS decorator for ES6/TS state definition classes, i.e:
```js
@State("foo")
export class FooState implements StateDeclaration {
url = "/foo";
component = FooComponent;
@resolve({ deps: [FooService] })
fooData(fooService) {
return fooService.getFoos();
}
}
```
- #### BC Likelihood
How likely is this to affect me?
Low: This only affects code that imports the internal API symbol `State`.
You will likely be affected you 1) import that symbol, 2) are using typescript and 3) explicitly
typed a variable such as `let internalStateObject = state.$$state();`
- #### BC Severity
How severe is this change?
Low: Find all places where `State` is imported and rename to `StateObject`
0 commit comments