Skip to content

@Html.React + serverOnly + renderfunctions #765

Description

@technicaldogsbody
  • The relevant native JavascriptEngineSwitcher library packages are installed (such as JavaScriptEngineSwitcher.V8.Native.win-x64)
  • The VC++ 2017 runtime is installed
  • The value of SetUseReact and SetUseBabel is correct in ReactConfig.cs or Startup.cs
  • I've looked at the sample projects in this repo to verify that my app is configured correctly

I'm using these library versions:

  • ReactJS.NET: React.Aspnet 4.1.1
  • JavaScriptEngineSwitcher: ChakraCore 3.0.7
  • react and react-dom: 16.8.2
  • webpack: 4.29.6
  • node: 10.13.0

Runtime environment:

  • OS: Windows 10 64bit
  • .NET Framework or .NET Core Version: .Net Core 2.1/2.2

Steps to reproduce


When using @Html.React with serverOnly set to true the styled components render function always returns null, remove serverOnly or set clientOnly and it works, the only workaround I have found to achieve what I want is to use @Html.ReactRouter and everything works as expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions