Angular/NGRX 14 Support #64
PointSingularity
started this conversation in
General
Replies: 1 comment 1 reply
-
Hey there! Angular & NgRx 14 support will be coming up :) Regarding the linting error: you can pass custom action types for undo/redo while configuring ngrx-wieder: // undo-redo.actions.ts
export const undo = createAction('[UI] Undo');
export const redo = createAction('[UI] Redo');
// *.reducer.ts
import { undo, redo } from 'undo-redo.actions'
const { createUndoRedoReducer } = undoRedo({
undoActionType: undo.type,
redoActionType: redo.type
});
// *.component.ts
undo() {
this.store.dispatch(undo());
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First off, thanks for the great library!
I was wondering if there were plans for upgrading to Angular and NGRX version 14?
I also have a question about eslint-plugin-ngrx and ngrx-wieder, now that the eslint-plugin officially is a part of the NGRX package:
When I use them in conjunction with each other, I get warnings about good action hygiene, specifically
This error is easily solvable with:
That creates another eslint warning, though:
These errors can be probably be safely ignored/turned off, but I was just wondering if there was an alternative solution.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions