Store.subscribe redux toolkit - redux

just learning redux toolkit and I find no where in my course material that components need to subscribe to store changes to render the state in UI correctly. Does it mean I don't need store.subscribe in redux toolkit?

Related

Creating UI elements in Xamarin.Forms

I am not in Xamarin.Forms. In windows desktop apps (win forms and wpf), you can create a user UI component and you can use it in any project. Is it possible to create that kind of small UI elments in Xamarin.Forms?
I will have like a dll and will add to my project and will add to my form and I will give properties that I'll already defined in the UI element.
So, in Xamarin Forms world, we typically create User Controls through use of ContentView.
This can be done with a XAML part and code behind, but you can easily create them just in code too.
There are a series of tutorials available on the web, one that is very clear is this one https://mindofai.github.io/Creating-Custom-Controls-with-Bindable-Properties-in-Xamarin.Forms/
If needed, you can create a separate Xamarin Forms project that encapsulates your controls and reference that in your main app solution.

Large number of form controls with ngrx

I recently learn NgRx (actually still trying to learn) and updating our existing projects to Angular 5 and ngrx structure. So far so good but one of our pages got a data table with more than 1k+ form fields in it.
I normally was using reactive forms to populating form fields from state slice and updating changes to state when user send the form but with that much of form fields creating form controls probably will be very costly and don't want to slow down that page and seems like it is not ok to just use basic text boxes and ngModel with NgRx structure
How can I solve that problem in NgRx way. Thank you in advance
When you use template driven form (By using ngModel directives on input elements), angular automatically creates FormControls on your behalf and attaches them to all registered input HTML elements, and then register these FormControls with the NgForm directly that angular creates and attaches to the form element for you. On the other hand, if you choose to use reactive form, you, yourself, have to explicitly create the top level FormGroup and any FormControls or FormArrays, and register these FormControls and FormArrays with the parent FormGroup and manually bind these to your form element and any input elements you want angular to keep an eye on. So logically, there should not be any notable difference in terms of performance. You also should not make any assumption about the performance problem that might by caused by using reactive form, measuring is your best answer in this case. But using reactive allows greater control and flexibility over your form
ngrx store is just a state manager, it is very similar to redux store, in fact, ngrx store is inspired by redux store, in one word, ngrx store allows you to put all your app states into a central location, so it is easier to manage and retrieve, so you don't really have to use it if you don't need to, there is not really a "ngrx way" of doing things

How to integrate Angular js with IBM BPM 8.0 client side human service

Currently I am working on ibm bpm 8.0 and we are having requirement to angular js in the client side human services.
I have imported jquery.js and angular.js in process app as web files and used those files in my coach view and successfully able to run angular js code in custom html, But how can I use angular js with IBM BPM provided controls like (output text, input, button etc) and can achieve the two way binding?
Already existing coach view are build in and are intended for specific functionalities, I did not get why you want to change this and want two way binding. I don't think we have better way to do this without modifying those existing views. But below might work.
onLoad event of any coach view, you can attached additional programmatically created DOM elements to existing coach view. This way, you can attached AngularJS related html elements to exiting coach view. Also you can attached any event with this newly added DOM elements to react to user actions. on change event of existing coach view you can pass data to newly added DOM elements.
Below should help you on how to use AngularJS which you already have done.
https://www.ibm.com/support/knowledgecenter/en/SSFPJS_8.5.7/com.ibm.wbpm.wle.editor.doc/topics/t_create_lite_control.html

InitializeComponent asynchrounously

Is it possible to make asynchronous InitializeComponent? Otherwise could I load my WPF component asynchronously? More specifically I'm currently developping a product in WPF and I noticed that the loading time of graphical components (some components) is quite big when I have performance requirements.
If you create a component on the UI thread so there's no way to put InitializeComponent on another thread, but it can be called asynchronously in the same thread using Dispatcher.BeginInvoke as follows:
Dispatcher.BeginInvoke(new Action(() =>InitializeComponent()));

ASP.NET Ajax Controls that still provide some level of functionality with javascript turned off

I am looking for some ASP.NET Ajax Controls (similar to those by Telerik) that, unlike those those by Telerik, still provide some level of functionality when the end user has javascript disabled. Does anybody know of any products like this?
I'm trying to do that in my open source library of components: http://nucleo.codeplex.com, but I haven't heard of any third-party specific controls. Adding that type of functionality really adds to the amount of time it takes to develop AJAX components, especially with the level of complexity of most control frameworks.

Resources