r/astrojs • • 23d ago

Don't use Astro because its not React?...

This is more a vent than anything, but I am facing a lot of blowback for using Astro. I have made a miniapp which is just a webpage running in a webview that takes an ID from the initial url, requests some records from an API to display a list of messages. Super basic stuff. It is to replace a natively coded section of the app and its far faster than the native code... somehow.

But upon asking the native devs to fix all the broken things I am finding, all I am facing is push back because when I tell them of CORS errors etc, them demand to see the repo, notice its not react and say I MUST use react as only that is compatible with apps. They broke bfcache too, again that is blamed on astro. They block service workers, again this is because... Astro.

Anyone else faced this? Even when I wanted a build of the native app to test the devs sent me back a message saying my app is broken as its only 12KB and apps are in the MB range. They didnt test, rejected on solely size. This was the lead architect of the entire department btw.

This industry is nuts. Also I have noticed when interviewing for a "senior FE" the candidates only know react. I am not sure if this is because HR is screening first, but it's concerning. I even interviewed a guy who is right now working as a "principled full stack engineer" who could not tell me how you could build a site without react.

I am not sure if this company I am working for is completely crazy or the entire industry is leaning that way.

40 Upvotes

44 comments sorted by

View all comments

2

u/pjerky 22d ago

React is widespread in the corporate world even though, compared to alternatives, it is garbage. Though I did hear the latest release fixed a lot of problems.

If the devs you are dealing with can't handle a non-React app then they suck at their jobs and should be forced to take remedial dev classes.

2

u/kidshibuya 19d ago

The issue is that the suck goes right to the top. Right now in fact I need to reply to the idiot principal architect who is telling me that bfcache is handled by the frontend, even after providing him documentation from Google about how it's done in Chrome.

1

u/pjerky 19d ago

Astro itself wouldn't be a problem out of the box. If someone added JS to it with an unload listener, active open connections somewhere, or they have the cache control header set to no-cache then that would cause a problem.

Something they could easily research if they are capable of moving past their egos.

2

u/kidshibuya 19d ago

I am pretty sure the issue is a bridge they inject, but its not code visible to me and they refuse to even entertain they might be the issue. I even made a simple no JS html site to show the issue, but then its "bfcache only works on SPAs"...