npm add [email protected]
licenseKey parameter to Replicache is now optional.clientMaxAgeMs to ReplicacheOptions. By setting this you can change how long to keep a client alive before it is considered a candidate for removal. A client is never removed if it has pending mutations. The reason for this option is to allow clients to come back from a frozen state and still have its backing store in place. A client can become frozen if the tab is in the background for an extensive time or if the user navigates away from the page and the page is put in the bfcache.
onClientStateNotFound callback is called, which by default will reload the web page.clientMaxAgeMs from 7 days to 24 hours.See https://github.com/rocicorp/todo-nextjs/pull/39