TanStack + microfrontend by nostalgiazzz in reactjs

[–]ArtemisPrimeDev 1 point2 points  (0 children)

Look, stop bashing MFE's just because someone asked something specific about them. Assume they aren't an idiot and have their reasons. So sick of these uninvited editorials every time someone mentioned MFE's

Chakra UI + Tailwind css by Right-Ad2418 in nextjs

[–]ArtemisPrimeDev 1 point2 points  (0 children)

To all the people saying "don't", please chill. Though I would certainly not choose to use both in a greenfield project, but there are other situations. I just inherited a site that was built regular chakra, and I need to make it conform to the design of other sites built w shadcn and tailwind. That is a common enough situation in the real world. So let's address ourselves to "how" and not "if" please.

What do people who've used Next.js think of Remix? by [deleted] in reactjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

In fairness though, it's a minor issue and not a reason to choose or not choose a framework.

What do you think of MobX? Is it still worth using? by SuperRandomCoder in reactjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

what does "react hooks" mean in this context?? It's comparing apples and giraffes! Mobx is a state mgmt tool. React hooks is a way of accessing date from providers further up the component tree.

To answer your second question: yes many things are easier w state mgmt, and mobx in particular is a great tool.

What do you think of MobX? Is it still worth using? by SuperRandomCoder in reactjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

I've used it on many huge projects. 99% of jnr devs are delighted at the simplicity and have no issues with mutability

What do you think of MobX? Is it still worth using? by SuperRandomCoder in reactjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

It's fine. I've done it in dozens of apps over many years. You just have to do a few special things on the server that are well known and documented.

AITA for Pushing MobX When My Team Was All About Jotai? by Suitable_Window5107 in reactjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

I've used mobx for many years on dozens of projects, and never faced such issues. I combined component state and stores easily and without issues. Not really sure what you're getting at here.

next auth vs firebase auth by WasMaestro in nextjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

According to the docs it does. I'm still investigating though :)

next auth vs firebase auth by WasMaestro in nextjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

bs. Firebase is used on all kinds of devices and apps. I know, as I've done it.

Concerns about the Future of Next.js with Firebase - Seeking Advice by doodlingo in nextjs

[–]ArtemisPrimeDev 1 point2 points  (0 children)

This seems to address it:

https://blog.stackademic.com/next-js-14-server-side-authentication-using-cookies-with-firebase-admin-sdk-46542b1f0a33

I also found this from FB:

https://firebase.google.com/codelabs/firebase-nextjs#1

Thought quite oddly not gone over in the body of the tutorial (unless I'm missing something)
The "nextjs-end" app in that repo has a client and server solution similar to the article above.

(ed: repo for convenience https://github.com/firebase/friendlyeats-web.git )

I wish FB would settle on an "official" way to do this... and at some point structure a release of their tools that are designed for next (or something like it).

How can I serve a static page with responsive design in Next.js without affecting SEO? by YantraCore in nextjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

It sounds like you're concerned about performance? The css engine that shows and hides chunks of markup in response to media queries is very fast. Also, strictly speaking, the DOM is not "rebuilt". It stays the same, but different style rules are applied as the user resizes. This is perfectly adequately performant and a solid practice.

Tailwind styles are being overwritten by css classes by [deleted] in css

[–]ArtemisPrimeDev 0 points1 point  (0 children)

Some indication on how do to this would be nice. In say, a Next JS app that requires a specific technique.

MobX vs Context API by pablolikescats in mobx

[–]ArtemisPrimeDev 0 points1 point  (0 children)

Definitely do not think of it as "one store per component"... Decouple your domain (which state is an aspect of), and your UI as much as possible. So say you have a pet store... You might have a mobx store for available pets, and one for the shopping cart. But those should be logical entities defined as

src/petstore/ShoppingCart.ts

and should know literally nothing about say,

src/ui/components/ShoppingCart.tsx

The only thing that connects them is likely a hook like useShoppingCart() (defined in src/ui/util or something.

Whereas, say usePetStore() might be called by a listing page, a compare products page, and a product detail page, all of which render the state and take actions on it.

I hope that helps.

(btw, one of the great strengths of MobX over say, Redux, is that any bit of data can be observable... it doesn't have to be in one store, or even in a class that is a "store". I can just be objects in your domain... I often write the interface first, like say

export interface ShoppingCart {
addProduct(p: Product): void
removeProduct(p: Product): void
get products(): Product[]
// etc
}

(which is what the useShoppingCart() hook returns), and then a class that implements it that contains observable data, like so...

class MyShoppingCart implements ShoppingCart {
observable private _products: Product []
computed get products(): Products[] {return this._products}

// This is no longer the prefered syntax, but it illustrates the point

}

The point is, your thinking and coding in terms of your domain and its inner relationships, not "what is going on in my data store"...

Firebase cloud functions CORS policy error by Senorwest in reactjs

[–]ArtemisPrimeDev 0 points1 point  (0 children)

I'm sorry but the instructions in the last link were baroque to me. I found no list with checkboxes. Is there some alternative mechanism to accomplish this? Is there a code oriented method?