MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / matches

Function matches

core/src/components/nav/view-controller.ts:55–68  ·  view source on GitHub ↗
(
  view: ViewController | undefined,
  id: string,
  params: ComponentProps | undefined
)

Source from the content-addressed store, hash-verified

53}
54
55export const matches = (
56 view: ViewController | undefined,
57 id: string,
58 params: ComponentProps | undefined
59): view is ViewController => {
60 if (!view) {
61 return false;
62 }
63 if (view.component !== id) {
64 return false;
65 }
66
67 return shallowEqualStringMap(view.params, params);
68};
69
70export const convertToView = (page: any, params: ComponentProps | undefined): ViewController | null => {
71 if (!page) {

Callers 1

setRouteIdMethod · 0.90

Calls 1

shallowEqualStringMapFunction · 0.90

Tested by

no test coverage detected