Skip to content
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

Electron + Flux + React-Router-Component Structure Desktop App - Routing not working properly #172

Open
ctsbala4587 opened this issue Jun 7, 2016 · 0 comments

Comments

@ctsbala4587
Copy link

  • Electron version: 0.37.8
  • Operating system: Windows 7; 32 Bit
  • React Version: 0.13.3
  • Flux Version: 2.1.1
  • React-router-component Version: 0.25.4

Here we are using React-router-component for routing functionality. This is routing functionality code.

<Locations hash>
    <Location  path="/" handler={
        <div>           
        <Login/>
        </div>
    }
    />  
    <Location path="/dashboard" handler=
        {
            <div>                       
            <Navbar/>
            <Dashboard/>
            </div>
        } />

</Locations>

After successful login user should navigate to dashboard page. But navigation not working immediately.

Once reload or refresh the page manually, then its navigate to dashboard page.

For navigation we using,

this.navigate('#/dashboard');

Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant