More Features of the RTK Queryby@anatolii
1,505 reads
1,505 reads

More Features of the RTK Query

by Anatolii Kabanov4mMay 24th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

API has two endpoints that handle requests and receive data. Hook name consists of the prefix ‘use’, the endpoint name ‘fetchConfigDetails’ and the postfix of the request’s type (a function that is used to create the endpoint) ‘build.query’ The main difference between them is the argument ‘id’ so actually the resources are different. The cache will be also different, one for ==ConfigDetails== and one for !=ConfigRunDetails.

Company Mentioned

Mention Thumbnail
featured image - More Features of the RTK Query
Anatolii Kabanov HackerNoon profile picture
Anatolii Kabanov

Anatolii Kabanov

@anatolii

Developing and enjoying life. Life is one, implement yours. All the best in your endeavors.

About @anatolii
LEARN MORE ABOUT @ANATOLII'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Anatolii Kabanov HackerNoon profile picture
Anatolii Kabanov@anatolii
Developing and enjoying life. Life is one, implement yours. All the best in your endeavors.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite