How Hot Reload works internally

0 votes

Hi Guys,

I am new in Flutter Framework. I am able to perform Hot Reload in my app. But can anyone tell me how it works behind the scene?

Jul 27, 2020 in Others by akhtar
• 38,230 points
487 views

1 answer to this question.

0 votes

Hi@akhtar,

When Hot Reload is invoked, the host machine looks at the edited code since the last compilation. The following libraries are recompiled.

  • Any libraries with changed code

  • The application’s main library

  • The libraries from the main library leading to affected libraries

The source code from those libraries is compiled into kernel files and sent to the mobile device’s Dart VM. The Dart VM re-loads all libraries from the new kernel file. So far no code is re-executed. The hot reload mechanism then causes the Flutter framework to trigger a rebuild/re-layout/repaint of all existing widgets and render objects.

answered Jul 27, 2020 by MD
• 95,440 points

Related Questions In Others

0 votes
1 answer

Difference between Hot Restart and Hot Reload?

Hi@akhtar, In simple Hot Reload with just update ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,440 points
2,297 views
0 votes
0 answers

How does mean parameter in rnorm function works?

I wanted to know how does the ...READ MORE

Jun 9, 2022 in Others by Avinash
• 1,260 points
320 views
0 votes
1 answer

How to check if array is multidimensional or not?

Since the 'second dimension' could be just ...READ MORE

answered Nov 5, 2018 in Others by DataKing99
• 8,240 points
5,184 views
0 votes
1 answer

How is machine learning used to detect objects?

To understand the surrounding environment in real ...READ MORE

answered Nov 30, 2018 in Others by Kailash
575 views
0 votes
1 answer

What is the future of flutter?

Hi@MD, Flutter is a rather new cross-platform framework ...READ MORE

answered Jul 17, 2020 in Others by akhtar
• 38,230 points
891 views
0 votes
1 answer

What is Flutter?

Hi@akhtar, Flutter is an app SDK for building ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,440 points
1,058 views
0 votes
1 answer

How to install Flutter in Windows system?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,440 points
1,506 views
0 votes
1 answer

How to perform Hot Reload in Flutter?

Hi@akhtar, To hot reload a Flutter app, you ...READ MORE

answered Jul 27, 2020 in Others by MD
• 95,440 points
2,826 views
0 votes
1 answer

What is Hot Reload in Flutter?

Hi@akhtar, The hot reload feature allows you to ...READ MORE

answered Jul 20, 2020 in Others by MD
• 95,440 points
1,048 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP