Satya
Satya
KPCKevin Powell - Community
Created by indee on 7/16/2023 in #front-end
i have a silly doubt
Grid didn't come to my mind. Kinda curious how to do that
64 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Intersection Observer in React
When my return statement was an array
const [ref, visible] = useIntersectionObserver()
const [ref, visible] = useIntersectionObserver()
still didnt work. Am I using destructuring the wrong way?
8 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Intersection Observer in React
Figured out what was causing the issue. Had to pass HTMLDivElement instead of HTMLElement to useRef and changed the return statement to
return {ref, visible}
return {ref, visible}
I've a little idea about why changing the return statement worked. Would like to know.
8 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Button Touchscreen Interaction
Thanks @mannix_
11 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Button Touchscreen Interaction
Worked!
11 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Button Touchscreen Interaction
11 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Button Touchscreen Interaction
@aparawasthi the nav button
11 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Button Touchscreen Interaction
https://www.satya.vercel.app it's a work-in-progress website. The button I'm talking about is the menu button on the navbar (which only appears for small screen devices)
11 replies
KPCKevin Powell - Community
Created by Satya on 7/14/2023 in #front-end
Button Touchscreen Interaction
Also, I'm not able to take a screenshot as it happens so fast. I dont know if I'm allowed to post a link here. I can give a link to the website.
11 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API get currently playing track
Quite honestly, I really wanted to have this in my webpage but right now I feel like it's too much work to just display some "not so important" info.
18 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API get currently playing track
So basically, I want users who visit my webpage to see the track that I'm currently listening to
18 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API get currently playing track
mine
18 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API get currently playing track
Just to be on the same page, so when somebody opens my webpage, in order for them to see the "Now playing" section, do THEY also have to login?
18 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API get currently playing track
I went through that just now and I'm kinda confused about the authorization methods they are using. Reading https://community.spotify.com/t5/Spotify-for-Developers/Get-currently-playing-track-API-Getting-a-400-amp-404-error/m-p/5580696#M9210 it seems I've to first go through the Authorization Flow / PKCE to generate an access token. The steps involved there are using a dialog where the user has to accept the auth request. So I was actually wondering if everytime someone opened my webpage do they have to first login to spotify in order to see the "Now Playing" section
18 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API get currently playing track
Are u referring to the Authorization Flow ?
18 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API get currently playing track
Yes
18 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API
Oh ok
11 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API
Been stuck here from an hour. Can you help please?
11 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API
@Jochem I've been trying to fetch the currently playing track but it keeps giving me 404: invalid username
11 replies
KPCKevin Powell - Community
Created by Satya on 7/10/2023 in #back-end
Spotify API
Thanks @Jochem !
11 replies