pickledvlad
pickledvlad
Explore posts from servers
AEAsh Elixir
Created by pickledvlad on 6/19/2023 in #support
Why store temporary sign in tokens and how to prune them?
I had the supervisor, but I didn't know and wasn't patient enough to find out that it "expunges" expired tokens.. Literally searched ash codebase for synonyms like destroy, prune, erase, wipe - everything except expunge 😆 My app is still in development, so I haven't seen what happens in a 12 hour interval. Now I changed the interval to test locally and it seems to work properly. Thank you 🙇
9 replies
AEAsh Elixir
Created by pickledvlad on 6/19/2023 in #support
Why store temporary sign in tokens and how to prune them?
This seems like the right choice, but I wonder if there are any use cases where someone would want to persist these temporary tokens in DB specifically. I can't think of any, but I also never built a lib for auth...
9 replies
TTCTheo's Typesafe Cult
Created by pickledvlad on 5/27/2023 in #questions
Is there a library for grid-based drag-n-drop?
I've seen it before. Seems like there is no "layout engine" in this one and the snap-to-grid example feels limited and buggy - if you zoom in / zoom out the snap-to-grid example (draggable object "runs away" from my cursor). Maybe it's because cells and grid sizes are px-based. It looks much more flexible/customizable than react-grid-layout though. I guess the best option I have atm is to try implementing a custom layout logic on top of dndkit.
6 replies
TTCTheo's Typesafe Cult
Created by pickledvlad on 5/27/2023 in #questions
Is there a library for grid-based drag-n-drop?
Thanks! This one looks great, the only thing I'm not sure about is if they allow creating custom rules for dropping items (to prevent stacking elements on top of each other). Will raise a discussion for this in their repo.
6 replies