Skip to main content

Constructing Replicache

The Replicache constructor requires name and licenseKey.

Replicache stores data persistently in the browser using IndexedDB. Instances that have the same name share storage. You should typically use the logged-in user's ID as the name, to keep their storage separate from any other users on the same device.

For licenseKey, this sample uses a TUTORIAL_LICENSE_KEY. This license key is intended for tutorials in Replicache's documentation. To build your own Replicache apps later, you'll need to create your own license key.

Challenge

Get your own license key and use it here instead of TUTORIAL_LICENSE_KEY.