Hi Is it possible to us…
Hi. Is it possible to use non-class-based actions (boilerplate, glad they are gone) with Nx Data Persistence? I could not find anything in the docs. This here is what I tried so far:
run: (action, state) => {
const booking: Booking = action.booking;
return <http://this.httpClient.post|this.httpClient.post><FirebasePostResponse>('<https://foo/bar.json>', booking).pipe(
map((res, err) => {
return bookingsAddOne({booking});
})
);
},
which is giving me a type mismatch error