-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using withDevTools
throws an error when the state has bigint
types
#29
Comments
bigint
typeswithDevTools
throws an error when the state has bigint
types
UPDATE: export class MyWrapper{
#nativeIp: Address4 | Address 6;
toJSON(){
// define serialization logic here,
// avoiding circular deps, and do not expose bigints to be serialized.
return this.#nativeIp.correctForm();
}
} The issue is still valid for the case you have no way to reimplement |
Dear @robmanganelly , thanks for posting this. Would it be possible for you to add a PR, or should some of us do it? |
Hello. I have a PR ready.
But I think I found another problem. It could be my own mistake though, so,
please check the spec file I changed and look for comment on line 137
edit (could not push, don't have enough permissions)
|
@robmanganelly you need to fork this project and push your branch to the fork. Then GitHub will give you the possibility to create a PR. |
done |
Hi guys,
I'm using
ngrx/toolkit
only to make mySignalStore
available to Redux Dev Tools.Hence, the only method in use is
withDevTools
, and I am passing a string.My project is using:
When I started using
ip-address
to perform operations on IPs, I got the following error:# Chrome Dev Console Log ip.component.ts:21 ERROR TypeError: Do not know how to serialize a BigInt at JSON.stringify (<anonymous>) at ot.stringify (<anonymous>:1:5274) at Dh (<anonymous>:4:2215) at k (<anonymous>:4:2313) at q (<anonymous>:6:311) at qe (<anonymous>:6:921) at Object.g [as send] (<anonymous>:6:2585) at EffectHandle.effectFn (angular-architects-ngrx-toolkit.mjs:26:20)
and this is the offending function in toolkit
Is it a bug or is there something that can be done from my side to mitigate this before reaching toolkit ?
My implementation wraps Address4 or Address6 (from
ip-address
) and creates instances of them that go into the state.Given my business logic, I do need the actual instance and not a simplified representation of it, so, sadly, this is not a solution.
Thanks for the great job.
The text was updated successfully, but these errors were encountered: