You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest, as of today, 9.23.0 version of Firebase with this course requires a slight change to wrap the config object in the clj->js function so that the firebase/initializeApp function can recognize the configuration object as a proper JSON object.
There are two ways to convert ClojureScript maps to JavaScript objects. You could use clj->js which is one way and a bit more heavier (it will also evaluate any code you have in the CLJS map and then there is #js {} which converts the thing without evaluating; when you have static properties, as in this example, it's advisable to use #js {} hope that helps.
Those two ways make sense. What was a problem for me was the video showing use of the config in firebase/initializeApp without showing Clj->js and thus was stuck on errors for a while.
the next video shows that, though first timers would be tripped up.
Using the latest, as of today, 9.23.0 version of Firebase with this course requires a slight change to wrap the config object in the
clj->js
function so that thefirebase/initializeApp
function can recognize the configuration object as a proper JSON object.The text was updated successfully, but these errors were encountered: