/// <summary>
        /// LoadRoute is called on state changed(each "request")
        /// </summary>
        /// <param name="language"></param>
        /// <returns></returns>
        public async Task LoadRoute(string language)
        {
            if (_routeService.FlattenPlaceholders == null || !_routeService.UrlIsCurrent().IsCurrentUrl)
            {
                RenderedComponentsInDynamicPlaceholdersPerStateChanged = new List <string>();

                await _routeService.LoadRoute(language);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// LoadRoute is called on state changed(each "request")
        /// </summary>
        /// <param name="language"></param>
        /// <param name="hasRouteError"></param>
        /// <returns></returns>
        public async Task LoadRoute(string language, bool hasRouteError)
        {
            if (_blazorStateMachine.CurrentPlaceholders == null || !_routeService.UrlIsCurrent().IsCurrentUrl)
            {
                RenderedComponentsInDynamicPlaceholdersPerStateChanged = new List <string>();

                await _routeService.LoadRoute(language, hasRouteError);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// LoadRoute is called on state changed(each "request")
        /// </summary>
        /// <param name="language"></param>
        /// <param name="hasRouteError"></param>
        /// <returns></returns>
        public async Task LoadRoute(string language, bool hasRouteError)
        {
            ComponentsInDynamicPlaceholdersAlreadyRenderedPerStateChanged = new List <string>();

            await _routeService.LoadRoute(language, hasRouteError);
        }