old_contents: import React from "react"
  import PropTypes from "prop-types"
  
  import pages from "./pages.json"
  import loader from "./loader"
  import JSONStore from "./json-store"
  
  const DevPageRenderer = ({ location }) => {
    const pageResources = loader.getResourcesForPathname(location.pathname)
    return React.createElement(JSONStore, {
      pages,
      location,
      pageResources,
    })
  }
  
  DevPageRenderer.propTypes = {
    location: PropTypes.shape({
      pathname: PropTypes.string.isRequired,
    }).isRequired,
  }
  
  export default DevPageRenderer
  
new_contents: import React from "react"
  import PropTypes from "prop-types"
  
  import pages from "./pages.json"
  import loader from "./loader"
  import JSONStore from "./json-store"
  
  const DevPageRenderer = ({ location }) => {
    const pageResources = loader.getResourcesForPathnameSync(location.pathname)
    return React.createElement(JSONStore, {
      pages,
      location,
      pageResources,
    })
  }
  
  DevPageRenderer.propTypes = {
    location: PropTypes.shape({
      pathname: PropTypes.string.isRequired,
    }).isRequired,
  }
  
  export default DevPageRenderer
  
subject: Fix getting page resources in page-renderer (#7501)