platform icon indicating copy to clipboard operation
platform copied to clipboard

Angular 9 support

Open kirillgroshkov opened this issue 5 years ago • 5 comments

This is a...

  • [x] feature request
  • [ ] bug report
  • [ ] usage question

What toolchain are you using for transpilation/bundling?

  • [x] @angular/cli
  • [ ] Custom @ngTools/webpack
  • [ ] Raw ngc
  • [ ] SystemJS
  • [ ] Rollup
  • [ ] Other

Would be nice to have Angular 9 support.

kirillgroshkov avatar Feb 15 '20 21:02 kirillgroshkov

@kirillgroshkov I'm currently using angular-redux/store 10.0.0 with Angular 9 and not having any issues. What issues are you having?

maplion avatar Feb 19 '20 04:02 maplion

Not 100% sure it's related to angular-redux, but after updating to Angular 9 I see this:

image

image

kirillgroshkov avatar Feb 23 '20 01:02 kirillgroshkov

@kirillgroshkov Ah yes, I was able to fix that issue by installing the library redux-observable-es6-compat https://github.com/iwnow/redux-observable-es6-compat

Then update your import statement in your app or core module for createEpicMiddleware

import { createEpicMiddleware } from 'redux-observable-es6-compat';

Then that should be made part of your store configuration, something like this (only relevant parts shown):

const epicMiddleware = createEpicMiddleware();
const middlewares: any = [epicMiddleware, <any other middlewares, e.g. reduxCatch>];
const enhancers: any = [];
const middlewareEnhancer = applyMiddleware(...middlewares);
enhancers.push(middlewareEnhancer);
composedEnhancers = composeEnhancers(...enhancers);
const store = createStore(rootReducer, initialState, composedEnhancers);

Try it out and let me know if it resolves your issue.

maplion avatar Feb 23 '20 02:02 maplion

Related to #90

asvishnyakov avatar Feb 26 '20 10:02 asvishnyakov

@asvishnyakov Do you know if anyone is working on this project?

maplion avatar Mar 22 '20 01:03 maplion