-
Notifications
You must be signed in to change notification settings - Fork 0
-
Notifications
You must be signed in to change notification settings - Fork 0
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
ビートルズデータの読み込み、表示を実装 #3
Comments
#1 でスプシのデータを作り込んだので、それを読み込んだ |
さて、ここから2つの方向性がある。 または上記2つの良いとこ取りのハイブリッド型にするか |
Firebase試行錯誤記録
他にもいろいろ調べたり試したが主要なものしか覚えていない、、 |
Web APIのセオリーとして 参考 なお、graphQLは1回の通信で必要な情報だけが返ってくる |
ビートルズデータはapiフォルダにすべきとわかったので移動 |
コンポーネントにスタイルを分割するとリロード時に効かない。 スタイルは聞くようになったがコンソールエラーは消えない しかしこの事象はデプロイ環境では起こらないようで、ローカル環境だけの事象かも? |
style設定に三項演算子を使っているせいとあったので、なくして見たが結果はかわらず メッセージにあったページを見ると、フックを使うとよさそう? |
こちらの記事を参考に、CSSのclass名設定などの分岐処理が終わったあとにStyled-Componentsのレンダリングを実行するようにしたら解決した!! |
一通り完成したのでクローズ。 |
・スプシのデータをGoogle Sheets APIでJSON化
・FirebaseのRealtime Databaseにimport
・Realtime Databaseをfetch apiで読み込む
・ページ上に表示する
・その後の処理を検討…
The text was updated successfully, but these errors were encountered: