logux / client

Logux base components to build web client
https://logux.org/
MIT License
656 stars 46 forks source link

Add option to skip subscriptions to children in filter #83

Closed AleksandrSl closed 2 years ago

AleksandrSl commented 2 years ago

We listen for all actions related to children without their subscriptions

AleksandrSl commented 2 years ago

Alas, such an easy solution isn't possible. After we created a syncmap it will try to unsubscribe at the end of its life, but we never subscribed. So we need some flag or copy for a template that only listens for changes and applies them as every sync map does, but subscription to the channel is held outside of it.

ai commented 2 years ago

Let’s avoid the option if it will help. Flexibility become to bloody.

You can track subscribed IDs in Template.subscribed or something like this.