You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development, keep `NATIVEPHP_APP_VERSION=DEBUG` to always refresh the Laravel application inside the native app.
77
+
Your app will boot a little slower, but you will find that everything looks as you expect.
78
+
79
+
It's better than scratching your head for an hour trying to figure out why your changes aren't showing!
43
80
44
81
</aside>
45
82
@@ -56,17 +93,25 @@ php artisan native:open
56
93
57
94
## Hot Reloading (Experimental)
58
95
96
+
We've tried to make compiling your apps as fast as possible, but when coming from the 'make a change; hit refresh'-world
97
+
of PHP development that we all love, compiling apps can feel like a slow and time-consuming process.
98
+
99
+
So we've released an early version of hot reloading, which aims to make your development experience feel just like home.
100
+
59
101
You can enable hot reloading by adding the `--watch` flag when running the `native:run` command:
60
102
61
103
```shell
62
104
php artisan native:run --watch
63
105
```
64
106
65
-
This is useful during development for quickly testing changes without rebuilding the entire app.
107
+
This is useful during development for quickly testing changes without re-compiling your entire app. When you make
108
+
changes to any files in your Laravel app, the web view will be reloaded and your changes should show almost immediately.
66
109
67
110
### Caveats
68
111
69
-
This feature is currently best suited for **Blade** and **Livewire** applications. It does not work so well if you're
112
+
For now, hot reloading only works in emulators, not on real devices.
113
+
114
+
Also, it's currently best suited for **Blade** and **Livewire** applications. It doesn't work so well if you're
70
115
also trying to hot reload compiled frontends using something like Vite's hot reloading.
71
116
72
117
## Releasing
@@ -111,3 +156,17 @@ submit it to the stores for approval and distribution.
111
156
112
157
-[Google Play Store submission guidelines](https://support.google.com/googleplay/android-developer/answer/9859152?hl=en-GB#zippy=%2Cmaximum-size-limit)
113
158
-[Apple App Store submission guidelines](https://developer.apple.com/ios/submit/)
0 commit comments