Luke Morales

Results 49 comments of Luke Morales

@Shajansheriff thanks for starting the discussion! I think supporting nested keys is a natural evolution of the package, it will be a fun experiment with Typescript to make that happen....

I feel like providing both APIs (creating smaller scopes and merging into a single one, and creating a single huge factory) will be useful for cases that depend on how...

@TommySorensen thanks for the suggestion and for sharing more information about your use cases. FYI v1.0.0 brings support for nested keys and the new API should be available soon, probably...

> @lukemorales Sounds great 👍 One thing i was considering was to also always put the url(without query params) for the fetch function inside the key factory so the react...

@TommySorensen just letting you know, v1.0 has been released with support for nested keys: https://github.com/lukemorales/query-key-factory/releases/tag/v1.0.0

Hey, @Jazzmanpw thanks for the suggestion! While I understand where the request comes from, I'm not sure if I want the lib to go that path because it would make...

> @lukemorales Sounds great with v1. FYI: it seems like that with v5 of query you might always will need to use the queryKey and queryFn. See more here [TanStack/query#4252](https://github.com/TanStack/query/discussions/4252)...

> just coming in to say love the library and would love for the queryKey passed to the queryFn via the context be strongly typed Thanks for the feedback @aulneau!...

@kimbuba can you share a little more context about your use case? especially about: > invalidate customersByAccountId (with refetchActive: false,) which will invalidate all other cached filtered entries. I can...

What's the difference between `list` and `list2`? Is that also a dynamic parameter? Maybe pagination?