-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user posts #64
Add user posts #64
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/hoangvvo/nextjs-mongodb-app/5kqrpz5sw |
|
I'm currently not know how to reset |
for which usecase do you need an reset? |
@wortkotze When a user make a post, I want it to appear immediately under the feed. I tried @shuding's workaround but it didn't work somehow. Take a look at vercel/swr#189 |
The article you mention is pretty interesting though. I would love to implement an infinity scrolled pagination (right now we need to press a button) |
I'm not sure but you could use the mutation of the swr with mutate you can change the api-url of swr or the load. in this way you could change the data that you are requesting |
I did try that but somehow did not manage to get it to work. I tried to use mutate on |
I'll merge it for now. Will also post an issue to keep track of this. |
This adds a user posting system, like status update, tweeting, etc.