question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ofType does no longer automatically infer action type from general source in pipe

See original GitHub issue

After upgrading to from 2.1.4 to 3.2.0 my epics are broken.

Before the update the ofType operator was able to infer the action type for the following operators in the pipe. It seems this no longer works.

This is the error I get after the update:

image

This is the matching action creator:

image

switchMap should be able to infer the type of the action and thus the types of the payload and meta properties.

Edit: I can also confirm that this works in 3.1.0.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
the-dr-lazycommented, Jan 9, 2020

Now repro works on CodeSandbox. Thank you @eXaminator for reporting this bug.

2reactions
the-dr-lazycommented, Jan 9, 2020

🎉 This issue has been resolved in version 3.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

ofType does no longer automatically infer action type from general ...
After upgrading to from 2.1.4 to 3.2.0 my epics are broken. Before the update the ofType operator was able to infer the action...
Read more >
NgRX effects - Type 'Observable<unknown>' is not assignable ...
Type 'Go' is not assignable to type 'ObservableInput<any>'. Fixing this gives @Effect() navigateToDashboard$ = this.actions$.pipe( ofType(teamActions.
Read more >
ofType - NgRx
Type narrowing automatically works, as long as your actions object starts with a Actions<SomeUnionOfActions> instead of generic Actions .
Read more >
Troubleshoot mapping data flows - Azure Data Factory
In this article. General troubleshooting guidance; Common error codes and messages; Miscellaneous troubleshooting tips; Next steps.
Read more >
Pipelines - Hugging Face
The pipelines are a great and easy way to use models for inference. These pipelines are objects that abstract most of the complex...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found