Skip to content

Commit 9f10013

Browse files
committed
Revert changes back to v0.0.23
1 parent 7a5ecb5 commit 9f10013

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "riduce",
3-
"version": "0.0.26",
3+
"version": "0.0.27",
44
"description": "Get rid of your reducer boilerplate! Zero hassle state management that's typed, flexible and scalable.",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/proxy/createActionsProxy.ts

-4
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ function createActionsProxy<
2525
wrapWithCreate(leafState, treeState, riducerDict, path),
2626
{
2727
get: (target, prop: Extract<keyof LeafT, string | number> | "create") => {
28-
if (typeof prop === 'symbol') return target[prop]
29-
3028
if (prop === 'toJSON') return () => "[[object ActionsProxy]]"
3129

3230
if (prop === "create") return target.create;
@@ -47,8 +45,6 @@ const propForPath = (prop: PropertyKey): string | number => {
4745
};
4846

4947
const isFixedString = (s: PropertyKey) => {
50-
if (typeof s === 'symbol') return false
51-
5248
// causes a bug in DevTools. idk how to fix. sorry.
5349
const n = Number(s);
5450
return !isNaN(n) && isFinite(n) && !/e/i.test(String(s));

0 commit comments

Comments
 (0)