Skip to content

Document how to inject properties in defineQueryOptions #397

@posva

Description

@posva

Discussed in #395

  • We cannot allow arbitrary injections because the options function can be called anywhere (e.g. retrieve a cached value)
  • It would be nice to introduce defineQueryOptions earlier in docs and explain that it returns what is passed
  • In the case of a function we can invoke it and pass to the cache

Metadata

Metadata

Assignees

No one assigned

    Labels

    📚 docsrelated to documentation

    Projects

    Status

    🆕 Triaging

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions