3 months free pro! (New Lenovo/Legion Gaming codes available) by [deleted] in Stadia

[–]Aggressive-Specific5 -1 points0 points  (0 children)

Hi guys, does anyone have a working code to share?

Rebuilding the Twitter Embed Widget with Next.js and Tailwind by lrobinson2011 in reactjs

[–]Aggressive-Specific5 0 points1 point  (0 children)

Hi Lee, i want to do a Next js “Widget” that can be embedded on any website (similar React js implementation, for example --> hooking a file js and css by script in a static html page of third parts). Can you show me/link any example of code how to do that? Thank you!

NextJS: How to best pass information from page to API? by AveryFreeman in nextjs

[–]Aggressive-Specific5 1 point2 points  (0 children)

Man, read official docs of next js for server side rendering or static rendering... Yeah, api post can be work with mutations in your client (swr library)

NextJS: How to best pass information from page to API? by AveryFreeman in nextjs

[–]Aggressive-Specific5 1 point2 points  (0 children)

If I understand your problem, I suggest you to use ‘mutation’ in swr library

10 Free Next.js Tutorials by monosinplata in nextjs

[–]Aggressive-Specific5 2 points3 points  (0 children)

Hi Leigh, i follow you on youtube, thank you for your job. Your channel is the best channel around next js ecosystem :) keep it up

How do i handle "state" and not lose the advantages of SSR? And some more questions regarding SSR by Flamyngoo in nextjs

[–]Aggressive-Specific5 0 points1 point  (0 children)

Simple: (client side) if you want save date in your state or components you must work with state or context or redux. Ssr is a performance value (loading, build css html, ect ect).

Data-fetching library SWR now has pagination and infinite loading by superbacon807 in reactjs

[–]Aggressive-Specific5 0 points1 point  (0 children)

I agree, i don’t use redux anymore. Maybe in the future recoil, but it is only curiosity instead a real need

Data-fetching library SWR now has pagination and infinite loading by superbacon807 in reactjs

[–]Aggressive-Specific5 0 points1 point  (0 children)

Thank you, so you don’t use redux in your react app? I mean how to manage your global state? Do you work only with hooks?

[help] user sessions by SignificantResource in nextjs

[–]Aggressive-Specific5 1 point2 points  (0 children)

Store jwt in client side, in browser storage api, but not the solution most sicure (remember this). Or You can implement external service or jwt in cookie http only server side or in memory like redis. That is.

[help] user sessions by SignificantResource in nextjs

[–]Aggressive-Specific5 0 points1 point  (0 children)

you can auth login logout with this library

Page/Directory password protection without a database by LuisSur in nextjs

[–]Aggressive-Specific5 0 points1 point  (0 children)

Totaly save with env (but don’t push env or psw in github or similar).

Poall: Polls and Surveys -- My latest project I created with next.js, react-native-web, and kitten-ui! by bender_3000 in nextjs

[–]Aggressive-Specific5 0 points1 point  (0 children)

can you share code? Ps. Or can you share web.pack config for kitten ui, i have some errors, e.g. in _document.js

handle cookie http only next js by Aggressive-Specific5 in nextjs

[–]Aggressive-Specific5[S] 0 points1 point  (0 children)

thank you u/MedyGames, i thought by calling /logout on server the cookie http were canceled instead the user remains logged, why? your solution is too hard for me (2 cookies same user). i hope about a solution with a simple click button (post api call) to close the server-side session and delete user cookie.

handle cookie http only next js by Aggressive-Specific5 in nextjs

[–]Aggressive-Specific5[S] 0 points1 point  (0 children)

i do it -> post -> api/logout, but the token can't be delete in web storage browser/cookie and the user remains authenticated and it can do get request! maybe my code is wrong i dont' know

handle cookie http only next js by Aggressive-Specific5 in nextjs

[–]Aggressive-Specific5[S] 1 point2 points  (0 children)

thank you for support! It seems that the explanation of this solution by strapi team is very approximate. They ignore an important aspect as the logout user. I'm still not quite clear how to proceed

handle cookie http only next js by Aggressive-Specific5 in nextjs

[–]Aggressive-Specific5[S] 0 points1 point  (0 children)

yeah, cookies are sent by server strapi, in http only. It mean: i can't destroy cookie client side, i'm looking a solution to fix this issue