@tagadapay/plugin-sdk 2.4.36 → 2.4.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,11 +162,8 @@ export const loadPluginConfig = async (configVariant = 'default', rawConfig) =>
|
|
|
162
162
|
*/
|
|
163
163
|
export const usePluginConfig = () => {
|
|
164
164
|
const context = useTagadaContextSafe();
|
|
165
|
-
// Log to confirm we're using the updated SDK
|
|
166
|
-
console.log('🔧 [SDK DEBUG] usePluginConfig called - using updated SDK version with safe context handling');
|
|
167
165
|
// If context is not ready yet, return loading state
|
|
168
166
|
if (!context) {
|
|
169
|
-
console.log('🔧 [SDK DEBUG] Context not ready yet, returning loading state');
|
|
170
167
|
return {
|
|
171
168
|
storeId: undefined,
|
|
172
169
|
accountId: undefined,
|
|
@@ -176,11 +173,6 @@ export const usePluginConfig = () => {
|
|
|
176
173
|
};
|
|
177
174
|
}
|
|
178
175
|
const { pluginConfig, pluginConfigLoading } = context;
|
|
179
|
-
console.log('🔧 [SDK DEBUG] Context ready, returning plugin config:', {
|
|
180
|
-
storeId: pluginConfig.storeId,
|
|
181
|
-
loading: pluginConfigLoading,
|
|
182
|
-
hasConfig: !!pluginConfig.config
|
|
183
|
-
});
|
|
184
176
|
return {
|
|
185
177
|
storeId: pluginConfig.storeId,
|
|
186
178
|
accountId: pluginConfig.accountId,
|