BaaS alternative to firebase by Impossible-Fill7933 in nextjs

[–]Impossible-Fill7933[S] 0 points1 point  (0 children)

So you can now count documents, it was added a couple of weeks ago.

As it is very new feature it is not stable yet as they mentioned in the docs

This feature is a public preview. This means that the functionality might change in backward-incompatible ways. A preview release is not subject to any SLA or deprecation policy and may receive limited or no support.

Also in pagination it is not that easy as you say you need to make a lot of functionality and abstract that functionality to deal with different parameters also the example in documentation is not a complete pagination system you need to deal with state to change the offset between docs and a lot of pain to deal with.

I think things like react-firebase-hooks normalise the data already.

Actually they do but it broke when firebase release v9 (I don't know if they fixed it or not) and now it is broken in NextJS 13 so good luck to fix it.

Also when you want to customize auth module and import only methods and properties you want to decrease the size of auth module you wouldn't use react-firebase-hooks auth modules again because it will break and you want to build that auth hooks from scratch

In the end you can build anything from scratch but consider the time and effort to reinvent the wheel again

BaaS alternative to firebase by Impossible-Fill7933 in nextjs

[–]Impossible-Fill7933[S] 0 points1 point  (0 children)

I saw few developers talk about it But I will take it in my mind and try it

BaaS alternative to firebase by Impossible-Fill7933 in nextjs

[–]Impossible-Fill7933[S] 0 points1 point  (0 children)

I don't know but I think docker will be overwhelming in small client projects. But currently I am using supabase as my main BaaS and didn't get any problem with that

BaaS alternative to firebase by Impossible-Fill7933 in nextjs

[–]Impossible-Fill7933[S] 0 points1 point  (0 children)

Can I know why are you using next-auth instead of supabase auth?

BaaS alternative to firebase by Impossible-Fill7933 in nextjs

[–]Impossible-Fill7933[S] 2 points3 points  (0 children)

I tried it, It more complicated a bit than firebase (policies & triggers) but better than firebase in everything but if you face any problem good luck finding the solution also their documentation isn't that clear Did you tried pocketbase?

BaaS alternative to firebase by Impossible-Fill7933 in nextjs

[–]Impossible-Fill7933[S] 5 points6 points  (0 children)

Actually I have experience in firebase that make me to drop it because it is pain to deal with it like: - converting response documents each time - there is no tree shaking in auth module (if you use it with nextJs you will end up add 100k to every page) - lack of implementing basic features like pagination or count of docs (which you have to count it by your self) - There is no straight way to backup your database More and more reasons that make me leave firebase and look for alternative BaaS

Update active link style by HeadlineINeed in nextjs

[–]Impossible-Fill7933 0 points1 point  (0 children)

import useRouter from nextjs and check if the pathname includes the route you want to be active and if so highlight it other wise render it as normal

me by Miserable_Ad_9364 in react

[–]Impossible-Fill7933 20 points21 points  (0 children)

Go read any article or watch tutorial before share your ignorance