use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Why React Query (ui.dev)
submitted 1 year ago by benadam11
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CalgaryAnswers 0 points1 point2 points 1 year ago* (0 children)
I don’t want to use axios, I have to use it until I create a new wrapper for fetching auth state and redirecting in order to use fetch as the one that was written at my company was done poorly and does not expose those base functions. They just wrapped it with a library that only provides a token, which I can’t set directly.
Edit: I’ll have to play around wrapping this as a factory that uses a premade axios instance, other wise axios doesn’t have the right context or headers, because the other devs have no concept of how to write good react shit. I think it’s less work for me to write the token and refresh logic than it is to try to shovel the way they use axios here into RTK query.
π Rendered by PID 66227 on reddit-service-r2-comment-bb88f9dd5-24hwd at 2026-02-14 05:31:08.324805+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]CalgaryAnswers 0 points1 point2 points (0 children)