Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@curi/addon-prefetch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@curi/addon-prefetch

An addon to enable prefetching curi routes

latest
Source
npmnpm
Version
1.0.0-beta.6
Version published
Maintainers
1
Created
Source

@curi/addon-prefetch

npm

The prefetch addon enables you to run a uri's load function prior to actually navigating to that location. This is only useful for in-app navigation. If the user uses the browser's forward/back buttons, the loading will be handled within the Curi configuration object.

Note: If you use this addon, then your load functions should be caching the data. This is because the route's load function is always called when generating a response, effectively making a duplicate call.

Another Note: This package is experimental and I'm still not convinced that it is necessary. This might be highly modified or even removed in the future.

Installation

npm install --save @curi/addon-prefetch

For more information, please check out the @curi/addon-prefetch page on the documentation website.

Keywords

curi

FAQs

Package last updated on 07 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts