Skip to content

Move lazyLoadTabs from Hotwire.config to HotwireTabBarController initializer#250

Merged
svara merged 1 commit into
mainfrom
lazy-load-tabs-setting-move
Jul 6, 2026
Merged

Move lazyLoadTabs from Hotwire.config to HotwireTabBarController initializer#250
svara merged 1 commit into
mainfrom
lazy-load-tabs-setting-move

Conversation

@svara

@svara svara commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR moves the lazyLoadTabs setting from Hotwire.config to a HotwireTabBarController initializer parameter.

Lazy tab loading was introduced in #194 as a global config option. Since the behavior is specific to HotwireTabBarController, it fits better as an initializer parameter than as library-wide configuration, and this aligns the API shape with Android, where hotwired/hotwire-native-android#202 exposes lazyLoadTabs as a constructor parameter on HotwireBottomNavigationController.

Notes

The defaults intentionally differ between platforms: iOS defaults to true (lazy loading shipped here as the default), while Android defaults to false (eager loading was its released behavior, so lazy loading is opt-in there).

@svara
svara merged commit e2e120f into main Jul 6, 2026
1 of 2 checks passed
@svara
svara deleted the lazy-load-tabs-setting-move branch July 6, 2026 08:25
@joemasilotti

Copy link
Copy Markdown
Member

The defaults intentionally differ between platforms: iOS defaults to true (lazy loading shipped here as the default), while Android defaults to false (eager loading was its released behavior, so lazy loading is opt-in there).

Should we align that before we release 1.3?

@svara

svara commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

The defaults intentionally differ between platforms: iOS defaults to true (lazy loading shipped here as the default), while Android defaults to false (eager loading was its released behavior, so lazy loading is opt-in there).

Should we align that before we release 1.3?

Yes. I mistakenly thought we defaulted to true in 1.2.2. Fixed in #252.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants