@syncify/hot

0.1.0 • Public • Published

@syncify/hot

HOT Reload client used to perform live reloading using websocket. This module will be injected into store theme layouts and is responsible for morphs and traversal loads.

Installation

$ pnpm add @syncify/hot

Usage

Running in HOT mode will result in Syncify injecting a snippet into layouts. The snippet is the socket receiver that is responsible for executing replacements/morphs and exposes programmatic control for developers who can to customize or hook into the HOT reload rendering cycles.

// STATUS
//
window.syncify.ready: boolean
window.syncify.connected: boolean;

// RELOADS
//
window.syncify.assets(): void;
window.syncify.reload(): void;
window.syncify.refresh(): void

// SECTIONS
//
window.syncify.sections.get()
window.syncify.sections.list()
window.syncify.sections.load()

// LABEL
//
window.syncify.style.parent({ /* CSS */ });
window.syncify.style.label({ /* CSS */ });

Readme

Keywords

none

Package Sidebar

Install

npm i @syncify/hot

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

103 kB

Total Files

7

Last publish

Collaborators

  • sissel