Home > @plasmicapp/query

query package

Functions

Function Description
addLoadingStateListener(listener, opts) Subscribes to whether any loading is happening via @plasmicapp/query. Returns a function to unsubscribe.
isPlasmicPrepass()
PlasmicPrepassContext(props)
PlasmicQueryDataProvider(props)
useMutablePlasmicQueryData(key, fetcher, options) Fetches data asynchronously using SWR Hook (https://swr.vercel.app/)
usePlasmicQueryData(key, fetcher) Fetches data asynchronously. This data should be considered immutable for the session -- there is no way to invalidate or re-fetch this data.
wrapLoadingFetcher(fetcher) Instruments an async function to increment and decrement the number of simultaneous async loads. You can then subscribe to whether there are any loads happening via addLoadingStateListener().

Variables

Variable Description
usePlasmicDataConfig

Type Aliases

Type Alias Description
LoadingStateListener