-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Milestone
Description
Getting these diffs a lot after the 1.14 update. Seems like the functional composition detection doesn't work anymore
this.subscriptions.add(
this.componentUpdates
- .pipe(
- startWith(this.props),
- distinctUntilChanged(isEqual)
- )
+ .pipe(startWith(this.props), distinctUntilChanged(isEqual))
.subscribe((props: Props) => {
const newParentPath = props.activePathIsDir ? props.activePath : dirname(props.activePath)
const queryParams = new URLSearchParams(this.props.history.location.search)Prettier 1.14.0
Playground link
Input:
this.subscriptions.add(
this.componentUpdates
.pipe(startWith(this.props), distinctUntilChanged(isEqual))
.subscribe(props => {
})
)Output:
this.subscriptions.add(
this.componentUpdates
.pipe(startWith(this.props), distinctUntilChanged(isEqual))
.subscribe(props => {})
);Expected behavior:
this.subscriptions.add(
this.componentUpdates
.pipe(
startWith(this.props),
distinctUntilChanged(isEqual)
)
.subscribe(props => {})
);as it was with 1.13
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!