Skip to content

Navigation Interface Adapter #28

@aminnairi

Description

@aminnairi

Is your feature request related to a problem? Please describe.
There is no way of opting to another way of navigating through the pages using another API other than the Web API.

Describe the solution you'd like
Update the startApplication signature in order to allow for creating an application with settings, then starting it.

import {
  createApplication,
  createWebHistory,
  createWebNavigation,
  createMemoryNavigation,
  createHashNavigation
} from "@arachnide/core";
const startApplication = createApplication();
const startApplication = createApplication({
  navigation: createWebHistory()
});
const startApplication = createApplication({
  navigation: createWebNavigation()
});
const startApplication = createApplication({
  navigation: createMemoryNavigation()
});
const startApplication = createApplication({
  navigation: createHashNavigation()
});

Default can be createWebNavigation if not provided since the History Web API is the most supported.

Describe alternatives you've considered
None.

Additional context
None.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions