Redux support in Angular 4 #441

Closed
opened 2025-08-09 17:16:18 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @tonywr71 on 9/6/2017

In the Startup.cs file for React with Redux, it has the following code:

app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
{
   HotModuleReplacement = true,
   ReactHotModuleReplacement = true
 });

My understanding is that this allows React components to be changed without losing in-memory state. I believe this is due to its use of Redux. Redux, however, is technology agnostic. It doesn't care if its being used by React or other javascript environments. There are a number of people using it with Angular online, but I also know that I can't add the ReactHotModuleReplacement flag to Startup.cs in an Angular project.

My question is, if I use Angular with Redux, does the Angular template support Hot Module Replacement for components while retaining in-memory state?

*Originally created by @tonywr71 on 9/6/2017* In the Startup.cs file for React with Redux, it has the following code: ``` app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions { HotModuleReplacement = true, ReactHotModuleReplacement = true }); ``` My understanding is that this allows React components to be changed without losing in-memory state. I believe this is due to its use of Redux. Redux, however, is technology agnostic. It doesn't care if its being used by React or other javascript environments. There are a number of people using it with Angular online, but I also know that I can't add the ReactHotModuleReplacement flag to Startup.cs in an Angular project. My question is, if I use Angular with Redux, does the Angular template support Hot Module Replacement for components while retaining in-memory state?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#441
No description provided.