I'm running into some odd behavior when run in combination with webpack-dev-server. In my configuration I specify a single appMountId for a React app. When I run the dev server, the initial render is fine, but the div fixture appears an additional time whenever my scripts are recompiled and the template is rewritten, leading to something like:
This is because of an unshift call to the appMountIds array in the template. This PR fixes the problem by rendering appMountId separately and not mutating the array.
I'm running into some odd behavior when run in combination with
webpack-dev-server
. In my configuration I specify a singleappMountId
for a React app. When I run the dev server, the initial render is fine, but thediv
fixture appears an additional time whenever my scripts are recompiled and the template is rewritten, leading to something like:This is because of an
unshift
call to theappMountIds
array in the template. This PR fixes the problem by renderingappMountId
separately and not mutating the array.