Tried running the reddit api code inside connected? again. it will run the request only once but it does not update the page w/ data from the request. IO.inspect confirms the request data being grabbed though.
I also built a quick liveview using another api(one that doesn’t require a key or auth and I do not have a problem at all. makes one request, loads the data on the page and that’s it. did not need to check if connected first or anything. HOWEVER, if i run this inside connected? conditional it does the same behavior as reddit api above. does not update page w/ data from request…
Looking at the docs it seems like all my request logic should be in handle_info and that would get triggered by the connected? conditional and then should update the page… Tried this too and technically it does update the data but, it also loops requests. maybe i am triggering it incorrectly though.
I’m wondering if reddit api request is doing weird stuff since it’s doing a token request then an auth/data request and then redirecting back to my uri. and this is maybe triggering renders? Maybe I need to bury the call for the token request inside the api wrapper?






















