@alexandregme/zljs 2.1.0 → 2.1.1

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.
@@ -269,6 +269,7 @@ import {
269
269
  combineReducers,
270
270
  configureStore
271
271
  } from "@reduxjs/toolkit";
272
+ var emptyReducer = (state = {}) => state;
272
273
  var createReduxStore = ({
273
274
  reducers,
274
275
  middlewares,
@@ -276,11 +277,10 @@ var createReduxStore = ({
276
277
  coreReducers
277
278
  }) => {
278
279
  let dynamicReducers = {};
279
- const createReducer = () => combineReducers({
280
- ...dynamicReducers,
281
- ...reducers,
282
- ...coreReducers
283
- });
280
+ const createReducer = () => {
281
+ const all = { ...dynamicReducers, ...reducers, ...coreReducers };
282
+ return Object.keys(all).length ? combineReducers(all) : emptyReducer;
283
+ };
284
284
  const store = configureStore({
285
285
  reducer: createReducer(),
286
286
  middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(middlewares),
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  usePageStore,
13
13
  useRouterStore,
14
14
  useToastStore
15
- } from "./chunk-5VIR5UAF.js";
15
+ } from "./chunk-CJYKXG6S.js";
16
16
  import {
17
17
  Error,
18
18
  FormInput,
@@ -7,7 +7,7 @@ import {
7
7
  Toaster,
8
8
  usePageStore,
9
9
  useRouterStore
10
- } from "../chunk-5VIR5UAF.js";
10
+ } from "../chunk-CJYKXG6S.js";
11
11
 
12
12
  // core/next/root-layout/root-layout.styles.ts
13
13
  import { tv } from "tailwind-variants";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",