From 8520406794f0dd34c711293051be4bd3479ae80d Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Tue, 22 Oct 2024 15:16:23 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Test=20integration=20of=20the=20?=
=?UTF-8?q?Redux=20store=20in=20the=20app?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
modules/ppcp-settings/resources/js/App.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/ppcp-settings/resources/js/App.js b/modules/ppcp-settings/resources/js/App.js
index c88ad1546..5a555a0a9 100644
--- a/modules/ppcp-settings/resources/js/App.js
+++ b/modules/ppcp-settings/resources/js/App.js
@@ -1,3 +1,8 @@
+import * as Store from './data';
+
export function App() {
- return App
;
+ // We need to "use" the Store variable, to prevent webpack from tree-shaking it.
+ console.log( 'Store ready:', Store );
+
+ return App with Store
;
}