Questions tagged [lifecycle]

A sequence of events or system calls relevant to the creation, startup, inactivation, resuming, shutdown and destruction (cleanup) of some program or its component (activity, library, servlet). Lifecycles are supported by various programming platforms.

2000 questions
0
votes
1 answer

UI5 - control formatter is executed too soon, before the data is loaded into model

I have a web application which, after login, displays landing screen with the navigation pane on the left. Also, during the onInit event, I call the getUserData() which collects additional data about the user (such as roles and saves them into the…
Jozef
  • 479
  • 1
  • 9
  • 36
0
votes
0 answers

Disposing of SWT Event Listeners

I am working on a SWT Desktop application where we use a lot of listeners for our various widgets. Currently I'm trying to manage the lifecycle of these listeners and while I have come to a solution, I was curious if I missed something or if I could…
Kalec
  • 2,681
  • 9
  • 30
  • 49
0
votes
0 answers

Set state and change local variable while ESLint is preventing to do

I am using ESlint in my react project. I have to update states and local variables when props are updated. ESlint and React ask me not to use setState in: componentDidMount componentWillUpdate componentDidUpdate getSnapshotBeforeUpdate I can use…
Diamond
  • 3,470
  • 2
  • 19
  • 39
0
votes
1 answer

How to create a custom maven phase, that will not be run during build?

I would like a plugin to only be run during a new phase. Mainly, I don't want the plugin to run during the build lifecycle. Something like install: maven clean build custom:meOnly GC Note: I am attempting to call this plug-in: …
GC_
  • 448
  • 4
  • 23
0
votes
1 answer

How to rerender React Component using Fetch-Suspense after a PUT request

For a school project I need to give bikers directions based on the value I get from a sensor. The sensor is able to send PUT requests to a db, with a value that is true or false. I'm using Fetch Suspense to retrieve that object from the db. And I…
0
votes
1 answer

fragment observe issue

I am facing an issue with LiveData and Fragment Lifecycle. The flow goes like this: The 1st Fragment shows a recyclerview of comments. Each comment has a delete button. The 1st Fragment has a menu button, which when pressed, navigates the user to…
JcDenton86
  • 933
  • 1
  • 12
  • 32
0
votes
1 answer

Remove S3 object after assign tag

I'd like to delete AWS S3 Object 30 days after assign tag. It seems to be easy when I tagged a new file during creation, but what if the file was created more than 30 days ago and I still want to be compliant with retention policy (30 days) and do…
0
votes
0 answers

Elasticsearch timestamp based queries over several daily-based indices

I am looking for examples with the syntax of different elasticsearch queries to get some selected fields from several daily-based indices (one index per day, for the last 30 days -> using elasticsearch index life management), based on timestamps and…
0
votes
3 answers

How can I get my list component to render after the state has changed?

I have a calculator app which logs the ten most recent equations processed by any user in real time via firebase. It is supposed to automatically update the log any time someone from any device essentially hits the equal sign. It does this for the…
0
votes
1 answer

What lifecycle method is the proper one to run validations in child component on button click in another child component?

I have a parent component and 3 child component. first 2 child components have input fields. 3rd child component have a submit button. When I click submit button, validations to check for empty field should run on both the other 2 components. What…
Jeny
  • 71
  • 1
  • 9
0
votes
1 answer

data is duplicated when i come back to the same page again

I'm Using ionViewWillEnter and ionViewWillLeave as a life cycle hooks for my ionic project pages, but in some page, the data is being duplicated if I navigated to another page and back to it. it adds the new data fetched in ionViewWillEnter to the…
Ahmed Wagdi
  • 3,913
  • 10
  • 50
  • 116
0
votes
1 answer

What is the difference between thread states and process states?

What I learned is if a process got blocked, it will be swapped out to the disk and wait for wake-up event. But, if a process can have multiple threads, what if a thread is blocked? For example, one of the threads waits for a keyboard eveny, the…
user3698042
  • 485
  • 1
  • 4
  • 7
0
votes
1 answer

Save last reading position

I created an app that reads books to the user. The user needs to be able to continue reading from the same position as he was in a previous app session. How do i do something like that, if a process kill can occur anytime?
DennisVA
  • 2,068
  • 1
  • 25
  • 35
0
votes
2 answers

What happens when already destroyed activity by OS is revoked by user from recent apps?

As far as I know, an app that is already destroyed by Android System resides in recent apps. For example, I launched my app and navigated through several activities. Then quit, and opened several other apps and not launched my app again for several…
Mehmet Katircioglu
  • 1,200
  • 1
  • 11
  • 20
0
votes
1 answer

Elasticsearch Index Lifecycle Management based on index name

Is it possible to set up ES Index Lifecycle Management to delete an index based on the name that has a date in it, i.e. my_index_yyyy_MM_dd, instead of index age?
khachik
  • 28,112
  • 9
  • 59
  • 94