2,027 questions
0
votes
0
answers
34
views
Back button callback not re-triggered after fragment recreation (rotation)
Context
I'm trying to intercept the default behavior of the back button to be able to add confirmation messages ("Are you sure you want to exit? [Save And Exit] [Cancel] [Exit]") on multiple ...
0
votes
1
answer
56
views
how to make sure a build phase is done before a reporting phase?
My immediate problem is that I use api documentation I generate in the pre-integration-test phase, and I want to use it both for the fake javadoc I create in the package phase, and for the site. I ...
1
vote
2
answers
143
views
How to validate Spring Boot shutdown hook invocation?
I work on a library that has (1) its own lifecycle management and (2) a Spring Boot integration. To merge the library's lifecycle management with Spring Boot, I construct SmartLifecycle beans that ...
0
votes
0
answers
77
views
D3 wont update chart when Inputs change values from form
const ELEMENTS = ['electric', 'fire', 'leaf', 'metal', 'rock', 'water', 'wind'];
const MORAL_TYPES = ['order'];//'chaos', 'equipoise'
const createNodes = () => {
const ...
1
vote
2
answers
81
views
I keep getting a TypeError using the removeEventListener to remove window resize event
I'm developing a function that adjusts the display content along with the window resize.
I have the following code to add window resize listener
mounted() {
...
window.addEventListener("...
0
votes
0
answers
30
views
Managing GetXController Lifecycle
I am working on a Flutter project using GetX for state management, and we have a booking module that includes listing, creation, editing, updating, and deleting features.
For this module, we have ...
0
votes
1
answer
340
views
AppLifecycleListener vs WidgetsBindingObserver
Flutter provides two distinct solutions for observing app lifecycle changes: AppLifecycleListener and WidgetsBindingObserver.
AppLifecycleListener and WidgetsBindingObserver. Given these two options, ...
-1
votes
1
answer
123
views
The lifecycle events in my iOS app don't work properly [closed]
I am trying to understand the iOS application lifecycle. I ran into this issue with an app I was working on, and to simplify the problem, started a new Xcode project and just added print statements to ...
0
votes
1
answer
83
views
AudioPlayer stops working after app in background for long period
Environment
just_audio: ^0.9.42
riverpod: ^2.6.1
flutter_riverpod: ^2.4.10
riverpod_annotation: ^2.3.4
Dev:
riverpod_generator: ^2.3.11
Platform: iOS
Flutter version: 3.27.2
Device: iPhone 12 Pro ...
0
votes
0
answers
65
views
Dynamic Syncfusion tab items within a Syncfusion dialog. Based on a parameter, I need to remove a tab item
Angular 19.0.1
When the dialog is opened, there is a parameter the dialog has called currentAllowed which is a boolean.
If it is false, the first tab should be removed, the one with headerText[0]. I ...
0
votes
1
answer
61
views
How to globally stop all running audio and video streams during app lifecycle changes?
I have a Flutter app with multiple audio and video players (e.g., video_player, just_audio, audioplayers). When the app lifecycle changes (e.g., the app goes to the background or is detached), I want ...
0
votes
0
answers
15
views
ExpressionChangedAfterItHasBeenCheckedError when using ViewChildren and QueryList [duplicate]
I need to update a css class in a component whenever it is added. Therefor I have a query list on my main component so I can listen to changes to all child components:
@ViewChildren(...
0
votes
0
answers
88
views
Android Compose: NullPointerException during AndroidView cleanup
I'm experiencing crashes in my Compose-based app when cleaning up AndroidView components that contain third-party ad views. The crash occurs during view detachment:
Fatal Exception: java.lang....
-1
votes
1
answer
35
views
riverpod'state readed before watched
Here is the partial code of my page:
@override
void initState() {
super.initState();
ref
.read(disableTimeControllerProvider.notifier)
.initStateWhenCreate(widget....
-1
votes
1
answer
68
views
Will my S3 bucket delete the objects in a versioned bucket?
I have a large bucket which I just added a lifecycle rule to that will expire the object after 90 days. There is already a lifecycle rule in place that will remove noncurrent versions past (the newest)...
2
votes
1
answer
58
views
Saving the fragment state correctly in android java
I am implementing an Android app in Java using Android Studio. We are following the MVVM architecture with Jetpack Compose, and we have a navigation bar with various fragments, including a home ...
2
votes
1
answer
182
views
Is there a way to set up a delete lifecycle rule of less than one day in google cloud storage?
I am trying to delete objects in a storage bucket by setting a delete lifecycle rule. I want these objects to be deleted 2 hours after creation, but it seems like you can only set the delete rule with ...
1
vote
2
answers
646
views
How to extend the lifespan of an object under asynccontextmanager into a background task in FastAPI?
I use an object that needs a startup and a teardown process (load from/save to cache, for example) in a FastAPI endpoints. I used a asynccontextmanager to manage the context of an object, but I also ...
0
votes
1
answer
28
views
Sticky eventbus only gets called when I enter to activity
I have two Activities, I am trying to send event from activity A to activity B without entering to activity B.
I am trying to do it with sticky eventbus, the problem is the event does not get trigger ...
1
vote
0
answers
63
views
iOS 17.5.1 and above, receiving a push notification trigger the lifecycle methods of the first viewcontroller in background
I have an app made several years ago in UIKit that was working fine.
Since iOS 17.5.1 we are encountering a weird problem that is completely breaking our app.
In this app, in the LoginViewController ...
2
votes
2
answers
505
views
Build Failure: @Data Annotation won't regonize by Maven
I consider that my maven has problems with the annotation @Data from lombok.
About the project: Java 23 Spring Boot Version 3.3.4 also using Intellij ultimate
The error appears after like mvn compile ...
0
votes
1
answer
110
views
Error login in the login page with blazor and identity
I have a situation that I belive the problem is the life cicle of the components, using blazor server-side and .net 8.
Using the structure that blazor ofers me, after going from the login page where ...
1
vote
1
answer
96
views
Web Components custom parsedCallback method is not working
Important NOTE: almost all IDEs will defer the execution of javascript automatically which means you might not be able to replicate this issue using them
When working with the Web Components API in a ...
2
votes
2
answers
1k
views
How to render my web component before connectedCallback but after constructor?
I am making a custom web component using vanilla JavaScript and am having some issues with when the component should be rendered.
At first I had my render() and hydrate() calls inside the constructor ...
0
votes
1
answer
60
views
How render data in child component with repeater in Laravel
I have a parent and child component in a Laravel app and would like to render a TextInput for each element in the array.
However, I'm having trouble passing data from the parent to the child. It ...
0
votes
1
answer
40
views
Using on attach on dialog does not let the override method on fragment get called
I am using a dialog that has a click, I want to save the listener of click on "onAttach" from configuration changes, the problem is that it prevents the override method of listener on my ...
0
votes
2
answers
392
views
Migrating SwiftUI lifecycle to UIKit's
I have an app already in production that uses SwiftUI's lifecycle (paired with an AppDelegate). Due to some specific behaviour of the app, we decided to migrate the app to use UIKit's lifecycle, ...
-1
votes
1
answer
372
views
How to detect when the app is removed from recent apps in Flutter?
I'm trying to detect when my Flutter app is removed from the list of recent apps. I attempted to use AppLifecycleState.detached in combination with WidgetsBindingObserver, but it seems that detached ...
-1
votes
1
answer
60
views
What happens inside javascript-based Pages if power goes off (PC shutting down suddently) (ex: Vue)
Maybe this is a silly question,
Regarding Vue 3 lifecycle hooks.
Any idea if a lifecycle hook of unmounted or something like the old Vue 2 destroyed is called, if there is a sudden power off (cut of ...
0
votes
2
answers
287
views
Terraform doesn't allow to use variable when creating resource. How to go around?
I have two environments: 'dev' and 'prod'. I want to create AWS s3 bucket for each one using different configurations of lifecycle: 'false' for 'dev' and 'true' for 'prod'. Usually I use variables. ...
1
vote
3
answers
2k
views
Wrapping with React.StrictMode in Next.js
I have React.StrictMode set to true next.config.mjs of Next.js I am using for React project. Do I still wrap with <React.StrictMode> in the layout.tsx ?
Do both serve the same purpose?
I have ...
1
vote
0
answers
160
views
registerFragmentLifecycleCallbacks does not work because it takes the NavHostFragment as Fragment, how to know the fragment that is open?
Follow-up to Jetpack Compose Hilt Inject ViewModel creation error with Jetpack Compose.
When I switch to another app (put the app that I am running in the background) and switch back to my app I want ...
1
vote
1
answer
76
views
ngOnInit in an Angular reactive form
I am building a form with Angular reactive forms and i want to set a form control value with a property from a service, but when i submit the form, the form control value is not what I expected (the ...
2
votes
1
answer
286
views
ProcessLifecycleOwner not working when launching with certain activities
I'm using ProcessLifecycleOwner to determine when my application goes into the background.
ProcessLifecycleOwner.get().lifecycle.addObserver(
object : DefaultLifecycleObserver {
override ...
6
votes
2
answers
6k
views
Failed to transform lifecycle-livedata-core-2.8.0.aar to match attributes (Flutter)
[[[enter image description here](https://i.sstatic.net/FyXF8U6V.png)](https://i.sstatic.net/BHA1Vyxz.png)](https://i.sstatic.net/JYa53T2C.png)
ERROR:C:\Users\Appspedia.gradle\caches\transforms-3\...
0
votes
1
answer
210
views
sidekiqctl stop halting the further execution of commands in preStop on devtron
Trying to run sidekiqctl stop in preStop hook of pod lifecycle, doing so to gracefully shutdown sidekiq process while pod termination.
Script that I'm trying to execute in preStop hook
echo "...
0
votes
2
answers
502
views
Generic UIViewControllerRepresentable implementation not reloading based on published property
I'm trying to use a generic wrapper for different UIViewControllers (screens implemented in legacy part of the app in obj-c) and I hit a problem where SwiftUI doesn't redraw the view when the wrapped ...
0
votes
0
answers
71
views
Android service is not running anymore (destroyed)
I wrote a foreground service that wait for BroadcastReceiver message and needs to run all the time, suddenly it stopped being listed on the Running services list from Developer options menu
I tried to ...
3
votes
1
answer
181
views
UIKit How to capture the time it takes to render first frame
I'm implementing telemetry for our app, one of the things I'm trying to capture are the distinct blocks of time as described by Apple engineers in the Optimizing App Launch video of WWDC 2019. I'm ...
0
votes
0
answers
485
views
Reusing Chromium/Puppeteer instance on hot start using AWS Lambda
I am using Puppeteer/Chromium on AWS Lambda. In my lambda handler, I am launching/closing a Chromium instance every time the lambda is called.
Here is a simplified ES module example loosely based on @...
0
votes
1
answer
274
views
How to trigger watchEffect() before onMount() in vue
My sample:
<script setup lang="ts">
import { onMounted, ref, watchEffect } from "vue";
const htmlRef = ref("ref");
const dataRef = ref({});
onMounted(() => {
...
0
votes
0
answers
99
views
Attach policy to existing ecr using Serverless
Is there a way to attach the lifecycle policy to the existing ecr repo using serverless?
So serverless supports the docker deployment now, with below sample config.
ecr: {
images: {
...
1
vote
0
answers
78
views
Flutter: AppLifecycleState inactive with system dialog open (Detect foreground vs minimized)
In Flutter, the AppLifecycleState becomes AppLifecycleState.inactive when a system dialog is opened, even though the app remains visible in the foreground. This makes it difficult to distinguish ...
-1
votes
1
answer
443
views
Unity MonoBehaviour Lifecycle: When are Start() and Update() Called for an Instance Created in Update()?
When you instantiate a new MonoBehaviour within another MonoBehaviour's Update() method, When will the lifecycle methods of the new MonoBehaviour be called according to Unity's execution order?
For ...
1
vote
1
answer
149
views
Using Brightway REST API to Obtain Carbon Footprint and Water Depletion Values for Materials
I am currently working on a project where I need to access carbon footprint and water depletion values for various materials. I have been exploring the Brightway REST API as a potential solution for ...
12
votes
1
answer
972
views
How to detect the Minimization of Custom Chrome Tabs on Android?
Context:
Our app recently switched to using Custom Chrome Tabs for authentication. WebViews wouldn't allow login from Google and Facebook due to privacy restrictions.
Everything worked well using ...
0
votes
1
answer
40
views
Why my delete animation not play before delete
<script setup>
import { computed, ref, watch } from "vue";
const emit = defineEmits(["delete-todo", "edit-todo"]);
const props = defineProps({
isSuccess: {
...
0
votes
1
answer
46
views
Why does animation auto stop while onPause
view.startAnimation(myAnimation)
I set an animation to some view, everything works.
but if the view go to onPause lifecycle (activity、fragment、customView etc..) and go back to onResume
the animation ...
1
vote
0
answers
320
views
Spring Boot, deferring Readiness.ACCEPTING_TRAFFIC event?
How can I defer or change the initial value of Spring Boot's AvailabilityChangeEvent<Readiness> state?
I have an application that acts as a worker (in our case it is polling messages from an ...
1
vote
0
answers
141
views
lifecycleNotificationUrl endpoint not being called/triggerred from Microsoft's Graph Api when Subscription is about to Expire
I am using graph api's webhooks (subscriptions/change notifications) to listen to changes happening on todoTasks and Events from Outlook. The notificationUrl endpoint is working correctly. I've ...