rtk-query

Experimental data fetching and caching addon for Redux Toolkit (by rtk-incubator)

Rtk-query Alternatives

Similar projects and alternatives to rtk-query
NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better alternative or higher similarity.

Posts

Posts where rtk-query has been mentioned. We have used some of these posts to build our list of alternatives and similar projects.
  • Alpha 2 of RTK-Query released
    reddit.com/r/reactjs | 2020-12-26
    Also, we now have a refetchOnMountOrArgChange option to trigger a refetch when a component is mounted/changes its query argument even if there is already data in the cache for the target route. You can specify a "minumum age" here. (https://github.com/rtk-incubator/rtk-query/pull/80)
    reddit.com/r/reactjs | 2020-12-26
    api.internalActions.prefetchThunk was renamed to api.util.prefetchThunk (https://github.com/rtk-incubator/rtk-query/pull/133)
    reddit.com/r/reactjs | 2020-12-26
    If you want to only select query result data or only trigger a query without caring for any result, you can now use the useQueryState and useQuerySubscription hooks. (https://github.com/rtk-incubator/rtk-query/pull/106)
    reddit.com/r/reactjs | 2020-12-26
    In addition, we've added some new options to tweak the refetch behaviour of the hooks. There now are refetchOnFocus and refetchOnReconnect options for the hooks. (https://github.com/rtk-incubator/rtk-query/pull/90)
    reddit.com/r/reactjs | 2020-12-26
    prepareHeaders can now be an async function. Thanks to https://github.com/schadenn for the contribution. (https://github.com/rtk-incubator/rtk-query/pull/123)
    reddit.com/r/reactjs | 2020-12-26
    Query endpoint definitions now support the same onStart, onError and onSuccess options that mutation endpoints already did. Thanks to https://twitter.com/kahirokunn. (https://github.com/rtk-incubator/rtk-query/pull/130)
    reddit.com/r/reactjs | 2020-12-26
    We had a bug report & fix PR from https://twitter.com/PettengillAaron for the edge case when an api returned an empty response body. Parsing that as JSON was probably not a good idea. Thanks! (https://github.com/rtk-incubator/rtk-query/pull/91)
    reddit.com/r/reactjs | 2020-12-26
    You can now call .unwrap on the result from the useMutation hook and mutation.initiate action creator to have the promise resolve with the returned value or throw an exception. If people like this API, we might add this to RTKs createAsncThunk as an alternative to unwrapResult. Thanks for https://twitter.com/kahirokunn for bringing this up. (https://github.com/rtk-incubator/rtk-query/pull/117) Also, be aware: this changed the general return value of the result from the useMutation hook from the resulting state to {data: ...} | {error: ...} in case you're not unwrapping.
    reddit.com/r/reactjs | 2020-12-26
    You can now pass in a custom fetch function into fetchBaseQuery - this came up in a discussion on server side rendering as a way to make better use of fetch ponyfills. Thanks to https://twitter.com/JoshMarantz for bringing this up. (https://github.com/rtk-incubator/rtk-query/pull/105)
    reddit.com/r/reactjs | 2020-12-26
    reddit.com/r/reactjs | 2020-12-26
    Also, we now have a refetchOnMountOrArgChange option to trigger a refetch when a component is mounted/changes its query argument even if there is already data in the cache for the target route. You can specify a "minumum age" here. (https://github.com/rtk-incubator/rtk-query/pull/80)
    reddit.com/r/reactjs | 2020-12-26
    api.internalActions.prefetchThunk was renamed to api.util.prefetchThunk (https://github.com/rtk-incubator/rtk-query/pull/133)
    reddit.com/r/reactjs | 2020-12-26
    If you want to only select query result data or only trigger a query without caring for any result, you can now use the useQueryState and useQuerySubscription hooks. (https://github.com/rtk-incubator/rtk-query/pull/106)
    reddit.com/r/reactjs | 2020-12-26
    In addition, we've added some new options to tweak the refetch behaviour of the hooks. There now are refetchOnFocus and refetchOnReconnect options for the hooks. (https://github.com/rtk-incubator/rtk-query/pull/90)
    reddit.com/r/reactjs | 2020-12-26
    prepareHeaders can now be an async function. Thanks to https://github.com/schadenn for the contribution. (https://github.com/rtk-incubator/rtk-query/pull/123)

Stats

Basic rtk-query repo stats
21
267
8.9
1 day ago

rtk-incubator/rtk-query is an open source project licensed under MIT License which is an OSI approved license.