-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
root is still react-root
using withOptions()
#10
Comments
+1 same here - this is a major issue for our app. |
Yeah - the issue seems to be only for the first '/' route. Works fine for other routes. |
This is not the case for me. Does anyone know a fix for this? Thanks! |
Ok guys, I figured something out When you have a look in the actual downloaded code from npm it seems it's a little different from the codebase presented here on GitHub. When browsing in the module (downloaded from npm), you should notice a function mount(layoutClass, regions) {
var options = {
rootId: (arguments[1] ? arguments[1].rootId : 'react-root'),
rootProps: (arguments[2] ? arguments[2].rootProps : {})
}
mounter(layoutClass, regions, options);
} This works for me. I think the code gets transpiled to Hope this helps PS: @arunoda I wanted to issue a pull request for this but I'm not sure how to do that with different code bases, could you look into this or help me do it? |
Currently experiencing unexpected behavior. I'm using the following code:
but the root still has an id of
react-root
. Was there something I missed? Thanks!The text was updated successfully, but these errors were encountered: