Newly Practicing Mortician

    @prefresh/core

    1.4.1 • 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.

    Keywords

    none

    Install

    npm i @prefresh/core

    DownloadsWeekly Downloads

    71,023

    Version

    1.4.1

    License

    MIT

    Unpacked Size

    19.1 kB

    Total Files

    13

    Last publish

    Collaborators

    • jdecroock
    • marvinhagemeister
    • developit