GithubHelp home page GithubHelp logo

Reload not working about create-cycle-app HOT 4 OPEN

cortopy avatar cortopy commented on June 12, 2024
Reload not working

from create-cycle-app.

Comments (4)

jonirrings avatar jonirrings commented on June 12, 2024

for "leave page blank"

const init$: Stream<string> = sources.router.history$
        .take(1)
        .map(({ pathname }: Location) =>
            pathname === '/' ? '/yourInitialRoute' : pathname
        );

from create-cycle-app.

jvanbruegge avatar jvanbruegge commented on June 12, 2024

Found the issue, waiting for a new release now

from create-cycle-app.

wmaurer avatar wmaurer commented on June 12, 2024

I ran create-cycle-app today, and am also experiencing webpack-dev-server live reload not working.
I also tried removing references to the router, i.e. I changed the App to:

export interface State extends CounterState {}
export function App(sources: Sources<State>): Sinks<State> {
    return Counter(sources)
}

Is the issue somewhere else, not in the router?

from create-cycle-app.

cortopy avatar cortopy commented on June 12, 2024

I've recently configured an app to use cycle and HMR, and there's something I don't undersand about create-cycle-app.

Webpack is configured with HMR but there is nothing I can see that manages it. The only module I've found for this is cycle-restart, but, unlike other HMR packages out there, it doesn't modify modules at compile time to make them react to hot reloads.

In my own setup I have two files:

  • app.dev.ts which looks very similar to the example in cycle-restart README file. This is my entry file in webpack.dev.ts
  • app.ts is the same without any reference to cycle-restart and the entry in webpack.prod.ts

The reason for this split is that I don't want cycle-restart in production builds.

@jvanbruegge does the router fix solve the same issue? or would this be a good PR for create-react-app?

from create-cycle-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.