Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
show notification when plugin fetch fails
Browse files Browse the repository at this point in the history
Summary: See earlier diff, Adding notification for when plugin fetch fails

Reviewed By: lblasa

Differential Revision: D57388178

fbshipit-source-id: 2f80d129f470fbe7adb73fab9e03bef230bede73
  • Loading branch information
Luke De Feo authored and facebook-github-bot committed May 16, 2024
1 parent b18ab3b commit c432ad4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion desktop/flipper-ui/src/Client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
createState,
getFlipperLib,
} from 'flipper-plugin';
import {message} from 'antd';
import {message, notification} from 'antd';
import {
isFlipperMessageDebuggingEnabled,
registerFlipperDebugMessage,
Expand Down Expand Up @@ -257,6 +257,12 @@ export default class Client extends EventEmitter {
`Failed to fetch plugins for phase ${phase}`,
e,
);

notification.error({
key: `plugin-init-error${this.id}`,
duration: 10,
message: `Failed to initialise client ${this.query.app}, please restart the app`,
});
}
return this.plugins;
}
Expand Down

0 comments on commit c432ad4

Please sign in to comment.