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
Always make system status API request for plugin and feature switch to fix an issue where the plugin from storage is outdated before it is synced externally with a tradeoff of an extra API request when POS tab is tapped for the first time.
// TODO: WOOMOB-759 - enable feature switch via API and check eligibility again
151
143
// For now, just checks eligibility again.
@@ -160,41 +152,20 @@ final class POSTabEligibilityChecker: POSEntryPointEligibilityCheckerProtocol {
160
152
161
153
private extension POSTabEligibilityChecker {
162
154
/// Checks the eligibility of the WooCommerce plugin and plugin version based POS feature switch value.
163
-
/// When a pre-fetched eligibility state is not provided, the plugin is the first matching WC plugin found in the storage for performance reason, which is
164
-
/// fetched remotely outside of the eligibility checker during site initialization.
165
-
/// The feature switch value is fetched remotely if the plugin version supports it.
166
155
///
167
156
/// - Parameter pluginEligibility: An optional parameter that can provide pre-fetched plugin eligibility state.
168
157
/// - Returns: The eligibility state for POS based on the WooCommerce plugin and POS feature switch.
0 commit comments