Skip to content
#

ngrx

Here are 1,068 public repositories matching this topic...

platform
Kamshak
Kamshak commented Jan 20, 2021

When using the *ngrxLet structural directive in an app, the view is cleared as soon as ngOnDestroy() is called. This causes an issue with animations: the view that is animated out changes as all ngrxLet templates get cleared.

To illustrate the problem see this StackBlitz, compare the ngIf behavior with ngrxLet: https://stackblitz.com/edit/ngrx-bug-ngrxlet

I believe the problem could be fixed

developer239
developer239 commented Jan 8, 2021

When I use removeItem state operator then TypeScript complains that message object can be possibly undefined even though I specified the type for removeItem operator. I could fix the issue with optional chaining but that is not possible if I want to use a utility library like Ramda

![image](https://user-images.githubusercontent.com/14946081/104027016-135aed80-51c7-11eb-9316-9b3dbf5b79bf

A complete Angular 6 and Webpack 4 starter seed with minimal and full featured branches. Full featured branch includes: Material Design 2 (Bootstrap 4 branch available as well), @ngrx, HMR, DLLs and optional use of Universal for server-side rendering - Supports AOT (offline) compilation, sync and lazy loading. Karma/Protractor for e2e/unit tests.

  • Updated May 27, 2021
  • TypeScript
deox
sanbornhilland
sanbornhilland commented Jun 10, 2021

Are you open to adding a Payload utility type? I think the following would be fairly useful:

const action = createActionCreator(
	'FOO',
	resolve => (foo: string) => resolve({ foo }),
)

// Get the payload type of this action
const FooPayload = Payload<typeof action>

Essentially I think you can do something like this but it would be better to make it generic.

ty

Improve this page

Add a description, image, and links to the ngrx topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ngrx topic, visit your repo's landing page and select "manage topics."

Learn more