Git Product home page Git Product logo

Comments (5)

SaraVieira avatar SaraVieira commented on August 22, 2024

I don't have any experience with cookies and also by adding this we would have to add a warning telling the user that we are storing cookies :(

I'm super okay with this but I don't have the experience to do this

from awesome-talks.

sudovijay avatar sudovijay commented on August 22, 2024

I'm super okay with this but I don't have the experience to do this

Now thats weird, the Great @SaraVieira don't have experience with cookies, i thought she like cookies too ..
Well, i'll try to do this tonight, tbh there's no way we could achieve this without cookies as we doing SSR. I mean we could do something like storing user ip & settings in server but that'll be too much stuff tbh , and yes we have to add that warning thing, Thanks to EU Cookie Law 🇪🇺

from awesome-talks.

SaraVieira avatar SaraVieira commented on August 22, 2024

I like to consume them, not create them :p .

Here are is a package for the law:
https://github.com/buildo/react-cookie-banner

Just saw that we use cookies for favorites, watched and also check if you like dark mode and saw this banner already ahah

from awesome-talks.

sudovijay avatar sudovijay commented on August 22, 2024

I like to consume them, not create them :p .

But you should know how to create them too. You never know when you have to :P

Anyway we could totally avoid using that package if you wanted too as all it doing is creating a CookieBanner component and setting a cookie when user sees it so that user never sees that again until the cookie expires , just too many dependencies, just sayin 🙂

And for handling cookies we could do this own our own but that will be too many regex & stuff on document.cookie instead we could use something like this, it makes things alot simple
https://github.com/js-cookie/js-cookie

from awesome-talks.

sudovijay avatar sudovijay commented on August 22, 2024

done in #89, Closing now .

from awesome-talks.

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.