How to use the piral-core.withoutKey function in piral-core

To help you get started, we’ve selected a few piral-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smapiot / piral / src / packages / piral-search / src / actions.ts View on Github external
swap(ctx, state => ({
    ...state,
    registry: {
      ...state.registry,
      searchProviders: withoutKey(state.registry.searchProviders, name),
    },
  }));
}
github smapiot / piral / src / packages / piral-modals / src / actions.ts View on Github external
swap(ctx, state => ({
    ...state,
    registry: {
      ...state.registry,
      modals: withoutKey(state.registry.modals, name),
    },
  }));
}
github smapiot / piral / src / packages / piral-menu / src / actions.ts View on Github external
swap(ctx, state => ({
    ...state,
    registry: {
      ...state.registry,
      menuItems: withoutKey(state.registry.menuItems, name),
    },
  }));
}
github smapiot / piral / src / packages / piral-feeds / src / actions.ts View on Github external
swap(ctx, state => ({
    ...state,
    feeds: withoutKey(state.feeds, id),
  }));
}
github smapiot / piral / src / packages / piral-dashboard / src / actions.ts View on Github external
swap(ctx, state => ({
    ...state,
    registry: {
      ...state.registry,
      tiles: withoutKey(state.registry.tiles, name),
    },
  }));
}