-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Thousands of debug messages: «Ignoring non-forwarder message…» #9
Comments
Onboarding is nice for the end user, but extremely inefficient and slows down my Dapp, I'll have to remove it! What's the problem? |
After looking at the code, I added
That is undocumented, but seems to be mandatory. BTW: Why not make But then I still get hundreds to thousands of Is this normal or am I doing something wrong? IMHO, the onboarding should run once at the start, then no more. And if it is normal, please remove the debug log! |
I have now a solution, that seems to work quite well:
So my code now looks like this (code is shortened):
|
Those console messages were removed in #10. I think the main concern raised here has been addressed, so I'll close this issue.
The constructor has changed somewhat since you made this comment (it takes an object now, not a string), but I believe that parameter is for the forwarder URL. That is not mandatory - it's to be provided only when you wish to use a non-standard forwarder. We only pass that parameter in during testing, to test with a local forwarder. I'd recommend never passing it in. We should certainly document this though, that's fair. |
I have updated #15 to add documentation as a prerequisite for v1 |
I get thousands of debug messages in the type of:
This is caused by
index.js:94
, where I see:metamask-onboarding
is running in a Drizzle / React based dapp, the relevant lines are (code shortened):Any idea?
The text was updated successfully, but these errors were encountered: