Skip to content

useEventCallback stop working with RJXS.ajax  #86

@mstruensee

Description

@mstruensee

when I add ajax.getJSON as one of my op parameters to my pipe, it seems to kill my observable ... am I doing it wrong or is it not supported ?

	const [ clickCallback, [ a, b, c ] ] = useEventCallback((event$, inputs$, state$) =>
			event$.pipe(
				() => ajax.getJSON("/api/v1/"), <-- adding this line breaks everything
				tap(x => console.log("tap2", x)),
				map((x) => {
					const { a, b } = x = {}
					debugger
					return [
						a,
						b,
						false
					]
				}),
				tap(x => console.log("tap3", x)),
			),
	)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions