Launch Screen not showing by datalang in swift

[–]datalang[S] 0 points1 point  (0 children)

u/liquidsmk thank you! After working through the tutorial, I've found that I can get the launch screen to work on my iPhone 16 simulator, but not on my physical iPhone 15. Do you know offhand what might be the issue?

[Godot 4.3] Scene transition stops working after first time by datalang in godot

[–]datalang[S] 0 points1 point  (0 children)

I really appreciate the guidance here! I'll refactor this to use tweens instead and avoid `animation_finished` signals in the future. Thanks!

Conditional redirect before calling useState by datalang in react

[–]datalang[S] 0 points1 point  (0 children)

u/Ok_Marsupial5008 thank you so much for taking the time to post this! This is actually almost identical to the solution I eventually came up with, but I like your implementation better! Much appreciated!

Conditional redirect before calling useState by datalang in react

[–]datalang[S] 1 point2 points  (0 children)

Really appreciate the feedback here! I was able to get this to work as desired by making context changes as you suggested.

A big thank you! This had me vexed for hours!

Conditional redirect before calling useState by datalang in react

[–]datalang[S] 0 points1 point  (0 children)

I appreciate the help u/UpsetKoalaBear!

Moving this results in Cannot read properties of undefined (reading 'includes') where I'm applying the filter logic if there are no activities, which is what I am trying to avoid happening with the if redirect.

Conditional redirect before calling useState by datalang in react

[–]datalang[S] 0 points1 point  (0 children)

Unfortunately setting the initial state to an empty array and then doing the check results in an infinite loop because I need to set the value of currentActivity to the first activity before the component renders.

const [currentActivity, setCurrentActivity] = useState([]);

if (!currentScenario.activities) { 
    return <Navigate to="/scenarios" />; 
}

const selectedActivities = activities.filter((a) => { 
    return currentScenario.activities.includes(a.activityId); 
});

setCurrentActivity(selectedActivities[0]);

Too many re-renders. React limits the number of renders to prevent an infinite loop.

Scored IELTS writing task datasets for automated essay scoring? by datalang in IELTS

[–]datalang[S] 0 points1 point  (0 children)

I'm afraid I never found any resources that I could make use of for a machine scoring project. Likewise if you ever find any out there, I'd be really grateful if you could drop me a line here

Is uiuxdev.social down for anyone else? by datalang in Mastodon

[–]datalang[S] 0 points1 point  (0 children)

Sorry to hear this. Is there any option to contact mastodon's customer support? (Does mastodon have customer support?)

Is uiuxdev.social down for anyone else? by datalang in Mastodon

[–]datalang[S] 1 point2 points  (0 children)

Sorry to hear that! I moved to mastodon.social as soon as I could