I think a better way to handle this long term might be pulling videos out into their own collection in firebase, instead of having them nested within a route like they are now. That way we could set up the usual filters so that when you pull data from state you only get videos that you can view. Then in the route page for example we'd do something like firebaseState.getVideos(['viewer', uid], ['routeKey', key]). Any opinions on this approach?
I think a better way to handle this long term might be pulling
videos
out into their own collection in firebase, instead of having them nested within aroute
like they are now. That way we could set up the usual filters so that when you pull data from state you only get videos that you can view. Then in the route page for example we'd do something likefirebaseState.getVideos(['viewer', uid], ['routeKey', key])
. Any opinions on this approach?