Adek
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
I got it, thanks!
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Just a short question. this endpoints how many Ads should return? The grid is scrollable so there I need "infinite" ads, how can I do that?
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Thanks for your time, have a good day!
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Yeah, this approach seems more easier. Thanks a lot!!!
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
The grid would be somehow dynamic, because it can have multiple dimensions( row-span-2, col-span, etc.)
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
The same goes to the slider
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Every third category
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Except categories, yes.
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
So more ads should come in
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
The bottom grid is scrollable
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Maybe this quick draw helps
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
I will write the backend too(But I'm not quite there). So Idea is that people can have their ads in the application, (like cards, banners, posts, etc.)
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
A slider as well ( every 3rd element of the slider should be an ad)
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
I want to display this ads in multiple places in the same page, let's say I have a Sidebar at left and I want to add some ads there too. So I don't want the same ad in multiple places. The nextAdvertisementIndex should say which ad is next in the list
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Maybe the approach is bad 😦
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Will be changed but not too much
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
I created a mock file: components/Advertisment/mock
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
If the solution can solve the problem I would change the whole thing. The idea would be to have a dynamic renderable Advertisment component.
57 replies
TTCTheo's Typesafe Cult
•Created by Adek on 6/8/2024 in #questions
What would you use for a global state management? - Initalization from API needed
Oh, I think the current solution isn't solved the whole problem, because we need the nextAdvertisment (number, which element of the array ex. 0,1,2) to be used instead of let currentAdIndex = 0;
57 replies