Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesBHuff committed Oct 24, 2023
1 parent 7d9a660 commit 2e64475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ I used [Redux](https://redux.js.org), as stipulated in the prompt -- [Redux Tool

I used [React Router](https://reactrouter.com/en/main). While the prompt did not specifically mention routing, I felt that it was a good idea to add it, since routing is a convenient way to pass certain kinds of information around the application, and because it allows me to store certain crucial bits of information (like search queries and Pokémon IDs) in the URL, which allows users to make use of browser history and bookmarks. Having routing also enables me to handle 404s and such; for this, I chose to just redirect to the homepage.

PokéAPI [requires caching as a condition of use](https://pokeapi.co/docs/v2#fairuse), and to use it properly with TypeScript I need types for the various calls it is capable of. Both of these concerns are addressed by [`pokenode-ts`](https://pokenode-ts.vercel.app), one of the [Wrapper Libraries recommended by PokéAPI](https://pokeapi.co/docs/v2#wrap) itself. However, what is provided by this package does not play well with Redux or React hooks. Accordingly, I use `pokenode-ts` only for its types, and use React Toolkit's RTKQuery (which also has built-in caching) for everything else.
PokéAPI [requires caching as a condition of use](https://pokeapi.co/docs/v2#fairuse), and to use it properly with TypeScript I need types for the various calls it is capable of. Both of these concerns are addressed by [`pokenode-ts`](https://pokenode-ts.vercel.app), one of the [Wrapper Libraries recommended by PokéAPI](https://pokeapi.co/docs/v2#wrap) itself. However, what is provided by this package does not play well with Redux or React hooks. Accordingly, I used `pokenode-ts` only for its types, and use React Toolkit's RTKQuery (which also has built-in caching) for everything else.

### Structure

Expand Down

0 comments on commit 2e64475

Please sign in to comment.