DrPorkChop
DrPorkChop
TTCTheo's Typesafe Cult
Created by RaiRai on 6/6/2024 in #questions
Expo Router APIs
I haven’t but I can try my best to help if you’re having any issues!
10 replies
TTCTheo's Typesafe Cult
Created by RaiRai on 6/6/2024 in #questions
Expo Router APIs
If you want to split it out a little more, you can create a <nameOfComponent>Service.ts file that contains all the API routes for a specific component or area of the application and then export them from there to use in the components being rendereded!
10 replies
TTCTheo's Typesafe Cult
Created by RaiRai on 6/6/2024 in #questions
Expo Router APIs
It very much depends on your use case, if you want to manage auth or do lots of resource heavy manipulation to the data you are pulling then it sort of makes sense to. But if you are just doing simple GET and POST requests etc. just having them in your frontend is fine!
10 replies
TTCTheo's Typesafe Cult
Created by RaiRai on 6/6/2024 in #questions
Expo Router APIs
Or are you trying to evaluate whether to have a seperate backend for calling the external endpoints, and then exposing endpoints to your frontend that provide you with pre-processed data?
10 replies
TTCTheo's Typesafe Cult
Created by RaiRai on 6/6/2024 in #questions
Expo Router APIs
@kronic Do you mean you don't want to have API calling logic in the component that is being rendered?
10 replies