title: how to pass props to lazy loading components?
body: <p>I'm trying to make website authentication. I tried to pass props to lazy loading modules
  but suddenly i encountered error "Uncaught (in promise) TypeError: w is not a function"</p>
  
  <p>I'm using react with apollo client, react router
  and graphql query is perfectly working and lazy component's rendering too
  but i can't pass props to lazy loading component</p>
  
  <pre><code>// App.js
  const SignIn = lazy(() =&gt; import('pages/signin'));
  
  function App(props) {
    // state to represent user signed in to the site
    let [auth, setAuth] = useState(false);
  
    function handleAuth (boolean) {
      setAuth(boolean);
    }
  
    return (
      &lt;&gt;
        &lt;main&gt;
          &lt;Suspense fallback={&lt;div&gt;Loading...&lt;/div&gt;}&gt;
            &lt;Switch&gt;
              &lt;Route exact path="/" component={HomePage} /&gt;
              &lt;Route 
                path="/signin"
                auth={auth}
                handleAuth={handleAuth}
                render={props =&gt; (&lt;SignIn {...props} /&gt; )}
              /&gt;
  </code></pre>
  
  <pre><code>// signin.js
  let auth = props.auth;
  let handleAuth = props.handleAuth;
  
  return (
      &lt;ApolloConsumer&gt;
        {client =&gt; {
          return (
            &lt;&gt;
              &lt;div className="signin-div"&gt;
                &lt;h1&gt;Sign in&lt;/h1&gt;
  
                &lt;form
                  onSubmit={async e =&gt; {
                    e.preventDefault();
                    const { data } = await client.query({
                      query: SIGNIN_ACCOUNT,
                      variables: { email, password }
                    });
                    if (data.signin) {
                      handleAuth(true);
                    }
                  }}
                  className="signin-form"
                &gt;
  </code></pre>
  
  <p>I expected that handleAuth(true) will perfectly work but I took error that handleAuth(true) is not a function. below is the error message
  "Uncaught (in promise) TypeError: w is not a function"</p>
  
  <p>How should I pass props to lazy loading modules?</p>