python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Compose side effects + Jetpack navigation + onBackPressed = Stuck navigation
I am having this issue where I have to navigate when given state gets updated after an asynchronous task gets executed. I am doing it like this:
At ViewModel.kt
fun executeRandomTask() {
viewModel...
No Soy Beto
Votes: 0
Answers: 1
How would a functional language actually define/translate primitives to hardware?
Let's say I have a few primitives defined, here using javascript:
const TRUE = x => y => x;
const FALSE = x => y => y;
const ZERO = f => a => a;
const ONE = f => a => f(a);
con...
David542
Votes: 0
Answers: 1
How to mimic multiple returns for reused api call using pytest
I'm trying to test a function that looks like this that calls an SDK.
FUNCTION TO BE TESTED
def create_folder_if_not_exists(
sdk: looker_sdk,
folder_name: str,
parent_id: str) ...
hselbie
Votes: 0
Answers: 1
Blockchain backtracking logic inside RxJs Observable pipe
Background
I am using NestJS and the Observable<AxiosResponse> pattern with the HttpModule to "observe" and eventually forward values returned by a JSON-RPC server, in this case a Bloc...
Mattia Bradascio
Votes: 0
Answers: 1