Code Monkey home page Code Monkey logo

Comments (9)

0x3339 avatar 0x3339 commented on May 29, 2024 2

you are awesome!

from twitter-clone.

ccrsxx avatar ccrsxx commented on May 29, 2024

Hmm, seems that you use the hook for the document that doesn't have the createdBy property. Can you give me details of when and where it occurred? also if you have changed something within the project.

from twitter-clone.

0x3339 avatar 0x3339 commented on May 29, 2024

add a post to your bookmarks, and then delete the post and go back to your bookmarks.
I noticed the same problem on your site, but I have a full screen error, and you have only in the console, I didn't change anything in the code.
null object is returned and it causes an error.

from twitter-clone.

Ketchupchh avatar Ketchupchh commented on May 29, 2024

did you set up firebase functions? looks like normalize-stats.tsx deals with this.

from twitter-clone.

ccrsxx avatar ccrsxx commented on May 29, 2024

I couldn't replicate it on my app. The error you see on my app is just from Twitter API, they disable the trending endpoint on the free plan.

image

@Ketchupchh Yeah, that could be probably the reason. Maybe when the bookmark tweet is deleted, since it's without the cloud function it doesn't update the user bookmark. And when you try the fetch the tweets that have been deleted you get undefined, that's why you get the error because you try to access the createdBy property with undefined.

I will try to debug it when I'm free.

from twitter-clone.

0x3339 avatar 0x3339 commented on May 29, 2024

Screenshot_1

from twitter-clone.

0x3339 avatar 0x3339 commented on May 29, 2024

Screenshot_2
my screen

from twitter-clone.

ccrsxx avatar ccrsxx commented on May 29, 2024

@0x3339 Okay, I think I see the problem. Will make a pr today to fix it.

from twitter-clone.

ccrsxx avatar ccrsxx commented on May 29, 2024

@0x3339 The latest commit should fix the issue. Thanks for bringing up the issue!

from twitter-clone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.