@prefresh/core

1.5.3 • Public • Published

Prefresh-core

npm version

We are still fleshing out the details on how to go about this approach best for Preact, we'd love to give you the best reloading experience possible.

Note that now the refreshing component will dispose of its hookState to reload in case of added hook, ... this to ensure consistency.

How to use

This plugin will set up a series of hooks onto the webpack instance, so the first thing to do is ensure that this package is part of your entries.

This will add a method on the window window.__PREFRESH__.replaceComponent, this function expects two arguments. The first being the old class/function and the second the new one.

This will go over all vnodes it knows for the oldType and rerender them according to the NewType.

Readme

Keywords

none

Package Sidebar

Install

npm i @prefresh/core

Weekly Downloads

80,662

Version

1.5.3

License

MIT

Unpacked Size

21.6 kB

Total Files

13

Last publish

Collaborators

  • jdecroock
  • marvinhagemeister
  • developit