We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4edde0 commit bd814e6Copy full SHA for bd814e6
src/React.NodeServices/ReactNodeEnvironmentExtensions.cs
@@ -23,7 +23,7 @@ public static IApplicationBuilder UseReactWithEnvironment<T>(
23
{
24
var appInstance = app.UseReact(configure, fileOptions);
25
TinyIoCContainer.Current.Unregister<IReactEnvironment>();
26
- TinyIoCContainer.Current.Register<IReactEnvironment, T>();
+ TinyIoCContainer.Current.Register<IReactEnvironment, T>().AsPerRequestSingleton();
27
28
return appInstance;
29
}
0 commit comments