You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, sorry, this should be either private or have a better explanation. It took also me a while to remember why I wrote those functions 😅
The cons(tructor) is just a function that returns a store. The idea is that Store could be a generic value. Why? Because at the beginning Fable.Store was written for interop with Svelte and Svelte has its own stores. This way Fable Svelte apps can write Elmish apps that could be sent to Svelte as a normal Svelte store.
However, when we wanted to extend Fable.Store to other apps we wanted to make IStore compatible with IObservable instead so we could take advantage of Observable pipelines (though unfortunately I haven't seen many examples of this) so we implemented our own store interface. This is way when you call Store.makeElmish an IStore is created by default, but if you use SvelteStore.makeElmish an Svelte store is used instead.
Hi, I peeked the source code but still I am a bit confused. Could you explain what are makeCons and makElmishCons?
The text was updated successfully, but these errors were encountered: