Comments (5)
You use asynchronous streams, right ?
from ux.
Yes, basically what's described here: https://symfony.com/bundles/ux-turbo/current/index.html#coming-alive-with-turbo-streams
from ux.
Did you try using Mercure private updates ?
https://symfony.com/doc/current/mercure.html#authorization
https://symfony.com/bundles/ux-turbo/current/index.html#broadcast-options
from ux.
Yes. But, if i'm not missing something, that only checks if the user is authenticated / has rights to receive updates on that stream. It doesn't affect which data is sent over the stream or how that data is rendered.
from ux.
For anybody coming across this issue here's a quick and dirty workaround. But so far this seems to solve all of our issues with just minor adjustments to our codebase.
https://gist.github.com/n3o77/0c9bdd9f566eb23435a39953ea980f04
Basically we only send some key for the update over the event stream. Each client then sends a fetch request to render all the necessary turbo-streams which are passed to turbo to render the streams. This adds some delay and of course more load, but it's better than nothing till a better solution exists.
from ux.
Related Issues (20)
- [Turbo] InstantClick should not prefetch links from Web Debug Toolbar HOT 11
- [LiveComponent] TemplateCacheWarmer not warming up cache HOT 15
- [Typed] Add a helper or use <template> to provide values HOT 2
- [TURBO] Impossible to redirect with anchor HOT 2
- [LiveComponent] Calling a property using a getter (i.e. computed) doesn't update component state (another component property)? HOT 5
- [TwigComponent] Profiler, memory consumption HOT 13
- The option "extra_options" does not exist. HOT 4
- [LiveComponent] How "defer" option work and the logic behind __invoke HOT 5
- [LiveComponent] getComponent is undefined if the controller loads very quickly as explained in the docs HOT 6
- [LiveComponent] `data-model` started throwing the "Invalid model name" error after upgrading to 2.15 HOT 1
- [LiveComponent] Can I rely on "busy" attribute to show a loading indicator outside a component?
- [Autocomplete] Doesn't load correctly on the first input HOT 1
- [LiveComponent] Updated values not submitted to the server properly HOT 7
- [Site] Add example for LazyImage with `srcset`
- [LiveComponent] Test helper doesn't work with localized components HOT 4
- [LiveComponent] Running `npm install --force` fails with "This is related to npm not being able to find a file." HOT 2
- Explicit re-render of a field when clicking a button HOT 3
- [TwigComponent] Examples in the CVA documentation do not work HOT 4
- [LiveComponent] Using ComponentWithFormTrait and switching forms doesn't keep form values. HOT 3
- Turbo restoration visit displays wrong AJAX HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ux.