2 ms·
Im using RTK Query with React with apps where i dont control the API and just consume the JSON. The problem with RTK Query is the strong reliance on the intern
by tacker2000 2y ago
Im using RTK Query with React with apps where i dont control the API and just consume the JSON.
The problem with RTK Query is the strong reliance on the internal cache, which is often in the way, since i need the updated data from the server most of the time, but otherwise it works quite well.
For apps where i control the backend (mostly PHP with Laravel or Symfony), im using Inertia now, which enables me to directly access the entity/model data in the React code, without any API necessary.
This works really well and reduces the React code to the minumim, UI based stuff, where it shines.
There is a Stimulus/Turbo plugin for Symfony as well, but Im not sure if this technology isnt too niche and unproven yet, in contrast with React, which has been around a long time, has tons of docs, and also loads of devs with experience on the market.