Skip to content
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

Added reset plugins running state in PluginController constructor to … #64

Merged
merged 4 commits into from
Aug 31, 2021

Conversation

shanejonas
Copy link
Contributor

@shanejonas shanejonas commented Aug 30, 2021

This fixes an issue im hitting where in the hydrated state case it ends up deleting the plugin, this fix resets it to not running so it can be booted cleanly with runExistinPlugins.

image

to fully resolve this issue, metamask-extension needs to handle getPersistedState when appropriate

@shanejonas shanejonas requested review from rekmarks, Gudahtt and a team August 30, 2021 21:29
@shanejonas shanejonas force-pushed the reset-plugins-running-on-boot-not-runningn branch from 44fec51 to 8d5c279 Compare August 31, 2021 17:51
@shanejonas shanejonas force-pushed the reset-plugins-running-on-boot-not-runningn branch from 855a14f to 119c11c Compare August 31, 2021 17:56
}),
state: persistedState as unknown as PluginControllerState,
});
await secondPluginController.runExistingPlugins();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should check the value of isRunning for the plugin foo immediately before and after this call.

@shanejonas shanejonas requested review from rekmarks and a team August 31, 2021 19:36
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shanejonas shanejonas merged commit 55f21c7 into main Aug 31, 2021
@shanejonas shanejonas deleted the reset-plugins-running-on-boot-not-runningn branch August 31, 2021 19:39
rekmarks added a commit that referenced this pull request Sep 7, 2021
* add eslint and fix related errors
* isFile and isDirectory refactor
* remove bundle.js file in identicon example
* add linting scripts
* update eslint overrides

Co-authored-by: Erik Marks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants