lolking0
lolking0
TTCTheo's Typesafe Cult
Created by lolking0 on 2/10/2025 in #questions
URGENT!! System Design Interview Prepration
I have an interview in an hour found some insight via leetcode discuss
A friend shared insights from the frontend system design round. The task was to design a dynamic sprint dashboard where users could modify the dashboard by adding columns such as “Backlog,” “Scheduled,” “In Progress,” etc. Each column could contain entities like tasks or stories. The key areas of focus were: Reusable UI Components: The UI components, such as tasks or stories, should be reusable. For example, a Task should be rendered using the same UI component each time. Versioning: Instead of modifying existing UI components, the idea of creating a new version of the component, similar to versioning in backend systems (e.g., Maven), was emphasized.
Could someone provide insight for the versioning thing
2 replies
TTCTheo's Typesafe Cult
Created by lolking0 on 6/27/2024 in #questions
Prevent Server Action from getting called if unrelated Search Param changes
const Page = async ({searchParams}: { searchParams: { type: string; }; }) => { const type = searchParams?.type || "normal"; const responseData = await fetchData(type); return ( <> <section className="container flex flex-col"> <TypeSelect/> <PokeSearch/> </section> <section className="container"> <Suspense key={type} fallback={<Loader/>}> <PokeGrid responseData={responseData}/> </Suspense> </section> </> ); } I want this to be recalled if type has changed but not if search has changed which is also a query param used in PokeGrid
2 replies
TTCTheo's Typesafe Cult
Created by lolking0 on 3/14/2024 in #questions
hrefLang app router
where to add <link rel="alternate" href={https://www.example.com${router.pathname}} hrefLang="x-default" />
1 replies
TTCTheo's Typesafe Cult
Created by lolking0 on 8/2/2023 in #questions
Possible to do in one loop?
"branchMaterials": [
{
"branchId": 1,
"materialBalances": [
{
"balance": 20.0,
"consignmentMaterialId": 59,
"branchId": 1,
"materialName": "test"
},
"branchMaterials": [
{
"branchId": 1,
"materialBalances": [
{
"balance": 20.0,
"consignmentMaterialId": 59,
"branchId": 1,
"materialName": "test"
},
api returns this, shouldve been grouped by materialName can we do that in one loop?
14 replies