choo-reload

1.1.1 • Public • Published

choo-reload stability

npm version build status downloads js-standard-style

Asset reloading package for choo. Reloads CSS, refreshes the page on JS.

Usage

var reload = require('choo-reload')
var choo = require('choo')
 
var app = choo()
app.use(reload())
app.mount('body')

FAQ

Why not replace all state on JS?

Because you're bound to have memory leaks. Figuring out how to properly close all handlers is tricky - but perhaps we'll eventually get around to solving this (probably major version). Until then: here's the second best thing.

API

reload([url])

Create a new instance of reload. url defaults to sse.

License

MIT

Package Sidebar

Install

npm i choo-reload

Weekly Downloads

1

Version

1.1.1

License

none

Last publish

Collaborators

  • mreinstein
  • benlyn
  • s3ththompson
  • yoshuawuyts
  • bret
  • lrlna
  • yerkopalma
  • juliangruber
  • timwis
  • ahdinosaur
  • toddself
  • sethvincent
  • maxogden
  • shama
  • freeman-lab
  • feross
  • emilbayes
  • colingourlay
  • jameskyburz
  • almost
  • slaskis
  • ungoldman
  • graforlock
  • tornqvist
  • amongiants
  • goto-bus-stop
  • mafintosh