If we store our posts in an object with keys as ids we'll have much faster lookup time so things like liking, editing, and deleting can be reflected much faster, since currently we're cycling over all posts and updating the post once we find it. With this described object we could find it instantly
If we store our posts in an object with keys as ids we'll have much faster lookup time so things like liking, editing, and deleting can be reflected much faster, since currently we're cycling over all posts and updating the post once we find it. With this described object we could find it instantly
Talk to Ryan for questions