In short, createEffect creates a callable function that accepts some data (imperative) or some stream of data (declarative), or none at all.
Usage
Injection Context
createEffect accepts an optional Injector so we can call createEffect outside of an Injection Context.
Resubscribe on errors
By default, createEffect() will re-subscribe on errors, using retry() operator.
This behavior can be configured or turned off, using optional second argument: