@equinor/fusion-framework-app
v10.4.2
Published
> support package for initializing application modules
Readme
@equinor/fusion-framework-app
support package for initializing application modules
📚 read the Doc
Bookmarks
The bookmark module provides a way to save and restore the state of the application. This is useful for saving the state of the application when the user navigates away from the application and then returns to the application.
[!IMPORTANT] please use the
enableBookmarkfrom@equinor/fusion-framework-app/bookmarkor@equinor/fusion-framework-react-app/bookmarkto enable the bookmark module.
[!WARNING] The application must be install the
@equinor/fusion-framework-module-bookmarkpackage to use the bookmark module.Do not use the
enableBookmarkfrom that package when developing Fusion AppsWe might in the future allow application configure their own module, but for now, use the enabler in the app package
Usage
import type { AppModuleInitiator, IAppConfigurator } from '@equinor/fusion-framework-react-app';
import { enableBookmark } from '@equinor/fusion-framework-react-app/bookmark';
export const configure: AppModuleInitiator = (configurator: IAppConfigurator) => {
enableBookmark(configurator);
};