@shrpne/pinia-colada-plugin-save-key
v0.0.2
Published
Save the query key when data is set in Pinia Colada
Readme
Store the query key used when data is set in the query entry extensions.
Installation
npm install @shrpne/pinia-colada-plugin-save-keyUsage
import { PiniaColadaSaveKey } from '@shrpne/pinia-colada-plugin-save-key';
// Pass the plugin to Pinia Colada options
app.use(PiniaColada, {
// ...
plugins: [PiniaColadaSaveKey()],
});Once installed, each query entry will expose entry.ext.dataKey after a successful fetch.
