CodingWithJamal
CodingWithJamal
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
Thank you Jamie, this code helped me see a starting point for the system I want to implement with convex.
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
And the senders are created and destroyed depending on the notification load. And the senders can be paused if needed to create a debouncing effect.
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
Okay so the senderCoordinator is a central orchestrator for notifications and the senders are like workers which get assigned task by this coordinator.
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
senders: defineTable({
jobId: v.id("_scheduled_functions"),
checkJobId: v.id("_scheduled_functions"),
}),
senderCoordinator: defineTable({
jobId: v.id("_scheduled_functions"),
}),
senders: defineTable({
jobId: v.id("_scheduled_functions"),
checkJobId: v.id("_scheduled_functions"),
}),
senderCoordinator: defineTable({
jobId: v.id("_scheduled_functions"),
}),
And the senderCoordinator controls a batch of senders?
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
Okay that make sense
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
So the senders are just a way to track the convex scheduler jobs.
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
After reading through the source code of the component. I couldn't find code related to handling time elapsing before the notification instantiates. Perhaps the misunderstanding is that I need to figure out how to code this before the notification happens.
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
How to handle the elapse of time for debounce logic in Convex?
I will read the component source code and see what I can learn
30 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
Notification System Design Advice
This support case is broader than I would like, so im making a separate post to get to the heart of my question:#How to handle the elapse of time for debounce logic in Convex?
6 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
Notification System Design Advice
Im reading up on https://stack.convex.dev/event-driven-programming right now as well
6 replies
CCConvex Community
Created by CodingWithJamal on 11/15/2024 in #support-community
Notification System Design Advice
No I didn't see this convex component thanks. I think this will be useful in the future but right now in the pre-mvp stage mobile is not an option yet. Im also looking into a way to implement the Browser Notifications API. I think convex would still be needed because there are many cases when a user might not get a notification and would need to be updated externally from the browser. Also this API is opt-in by default which is not a preferable UX.
6 replies
CCConvex Community
Created by CodingWithJamal on 9/26/2024 in #support-community
Need a little react help
okay i will check
12 replies
CCConvex Community
Created by CodingWithJamal on 9/26/2024 in #support-community
Need a little react help
the api for default value is not the problem
12 replies
CCConvex Community
Created by CodingWithJamal on 9/26/2024 in #support-community
Need a little react help
export default function useLocalStorageState<T>(
key: string,
options?: LocalStorageOptions<T>,
): LocalStorageState<T>;

export type LocalStorageOptions<T> = {
defaultValue?: T | (() => T);
storageSync?: boolean;
serializer?: {
stringify: (value: unknown) => string;
parse: (value: string) => unknown;
};
};
export default function useLocalStorageState<T>(
key: string,
options?: LocalStorageOptions<T>,
): LocalStorageState<T>;

export type LocalStorageOptions<T> = {
defaultValue?: T | (() => T);
storageSync?: boolean;
serializer?: {
stringify: (value: unknown) => string;
parse: (value: string) => unknown;
};
};
12 replies
CCConvex Community
Created by CodingWithJamal on 9/26/2024 in #support-community
Need a little react help
It seems to default to no at first even though in local storage its "true" right now
12 replies
CCConvex Community
Created by CodingWithJamal on 9/26/2024 in #support-community
Need a little react help
No description
12 replies
CCConvex Community
Created by CodingWithJamal on 9/26/2024 in #support-community
Need a little react help
If anyone has implemented something like this in convex themselfs let me know please!
12 replies
CCConvex Community
Created by CodingWithJamal on 7/24/2024 in #support-community
Realtime game with convex...?
im planning to use convex for everything except the game ws api
19 replies
CCConvex Community
Created by CodingWithJamal on 7/24/2024 in #support-community
Realtime game with convex...?
thank you!
19 replies