2.0.0 • Published 4 years ago

use-next-with-workbox v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

use-next-with-workbox

Utilities for using Workbox with Next.js + React.

size dependencies build downloads license

Install

yarn add use-next-with-workbox

Usage

import React from "react";

import { useWorkbox } from "use-next-with-workbox";

export default function Component() {
  useWorkbox({
    offlinePath: "/offline",
    registerOptions: {},
    scriptURL: "sw.js",
    showSkipWaitingPrompt: false,
  });

  return <p>Hello World!</p>;
}

License

MIT © cansin

2.0.0

4 years ago

1.0.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago