Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "Ricavir"

Hi,

I had some issues with my Xamarin App and didn't took time to reproduce and explain this issue. From your message, I can see that we have the same issue.

Tks, it works ! I just need to be careful because all settings are received from server even if only just one setting has been changed.

Hi,

Is it possible to change a user setting on client side without refreshing client angular page ?

The use case is :

  • user saves an entity by calling a server appservice
  • this appservice change a user setting "setting-A" on server side
  • if user navigates to other pages on client side AND angular application tries to read user setting "setting-A", then "setting-A" will not reflect last value stored on server side.

Is there a way to change this user setting on client side without refreshing ? If no, is there another alternative instead of having to create a dedicated appservice ?

thank you @ismcagdas

I also had a discussion with a zero user that implement this kind of solution : <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/975">https://github.com/aspnetzero/aspnet-ze ... issues/975</a>

Answer

@ismcagdas I quite sure that this is linked with angular cli.

<a class="postlink" href="https://github.com/angular/angular-cli/issues/5775">https://github.com/angular/angular-cli/issues/5775</a>

I've been upgrading my aspnetzero project for a while now. I already had this kind of issue with angular 4 (if I remember well...) and this problem went gone after an angular update.

Actualy, deactivating sourcemap allows me to continue development like I did before. Hope that nexts angular updates will fix this.

@Alper : I would like to speedup xamarin startup and would like to have your advice.

I was thinking on following : 1 . store appcontext localy to avoid httprequest on each startup 2. display a spinner (or any animation) after 1-2 seconds before displaying login page

Thanks for your help

Answer

@ismcagdas : thank you, deactivating sourcemap helps and solves the problem partially. I can't debug TS files but builds are very fast. Hope this will be fixed for next releases (must be an angular cli bugg...)

Answer

It is the same time with or without HMR.

All my modules are rebuilt very fast, but when I changed something in the shared module (app/shared/common), it takes for every change arround 6 minutes to rebuild !

I have to find a solution, we can't work like that...

Answer

@alper, my current version is 6.0.4

As you can see here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1142">https://github.com/aspnetzero/aspnet-ze ... ssues/1142</a> I need to wait 6/7 min to build the entire project. Long time waiting at this step : 92% after chunk asset optimization SourceMapDevToolPlugin main.js generate SourceMap

[attachment=0:1a8bsdhi]Capture.PNG[/attachment:1a8bsdhi]

I can't explain why but I resolve this issue by updating my project from v5.1 to latest zero version v5.5.2.

Showing 201 to 210 of 325 entries