atlassian-labs / react-resource-router

Configuration driven routing solution for React SPAs that manages route matching, data fetching and progressive rendering
https://atlassian-labs.github.io/react-resource-router
Apache License 2.0
202 stars 28 forks source link

replace window.URL with URL from url-parse #140

Closed liamqma closed 2 years ago

liamqma commented 2 years ago

When trying to use the latest version of RRR in JFE, we discovered URL is not supported in SSR runtime.

I noticed url-parse is already included as dep in this repo. Therefore, use url-parse instead of window.URL as a short-term solution.