Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase v10 #32

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Firebase v10 #32

wants to merge 5 commits into from

Conversation

SkylerA
Copy link

@SkylerA SkylerA commented Jul 30, 2023

This PR seeks to update the firebase syntax from v8 to v10 and provide a reference of necessary changes for anyone building the project with @latest packages.

Initially, I tired to only update the minimum dependencies of firebase, react and react-dom, but at the end I ran into one issue with getUserWithUsername throwing an error about collection() not being passed a valid reference even though it was being passed firestore and was seemingly working fine in other files. In the end, I decided to just update react/next.js to latest and this resolved the issue.

The following changes are made:

  • Update necessary packages to latest
  • Fix bug with unheart showing because exists was being treated as a boolean instead of a function Similar PR
  • Copies react-hook-form updates from react-hook-form v6 to v7 migration #4 (If updating this course, please integrate the original authors PR first so they are credited)
  • Temp fixes <Link> containing <a> errors with legacyBehavior. CSS might need an update after removing <a> and legacyBehavior. While writing this PR note, i just realized i blindly added legacyBehavior to all links while getting ready to check in. This is actually only needed on links that contain <a>
  • Updates all firebase commands and adds a few TODOs to consider

Note This is my first time using firebase so there might be a better implementation. I've placed a few TODOs with points you might need to consider if using this project as a boilerplate.

@vercel
Copy link

vercel bot commented Jul 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-firebase-course ❌ Failed (Inspect) Jul 30, 2023 6:25pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant