Composables

usePrecognitionConfig

Accessing the current Precognition configuration from your Nuxt app.

Usage

This composable provides quick access to Nuxt configuration under the precognition key. It is used as a part of the module implementation, so there is no particular need to use this in your application.

Code sample

Here is an example of the call:

SomeService.ts
const precognitionConfig = usePrecognitionConfig()

console.log(precognitionConfig.validateFiles)