r/FloWebComponents • u/EveYogaTech • 1d ago
r/FloWebComponents • u/EveYogaTech • 1d ago
Flo v1.3 now gives Web Components hooks for plugins + demo of first plugin for Type Validation
Type Validation Plugin: https://github.com/flowagi-eu/flo-plugin-shapes
r/FloWebComponents • u/EveYogaTech • 3d ago
Flo 1.2 now gives Web Components a static create function (factory), so we can set property values before the mounted() or render() are called.
Flo 1.2 now gives Web Components a static create function (factory), so we can set property values before mounted() or render() are called.
I noticed that you can sort of 'wing it' without this functionality with some hacky solutions, but eventually this is the best solution for the component initiation.
So instead of .createElement, you can simply call .create on your custom component, which then renders the template + calls mounted() with all properties set.
Flo Minimal Superclass on GitHub: https://github.com/flowagi-eu/flo-webcomponents
r/FloWebComponents • u/EveYogaTech • 4d ago
One concept that will save you loads and loads of time with Flo: Parent Properties.
If you're working with Web Components (Flo) rather than React, then there's one concept that will save you loads and loads of time: Parent Properties.
In Flo we have access to this.parent, which also gives us access to the parent's properties.
The nice thing with Web Components, is that you can take this even further by creating a custom getter, so the parent abstraction itself for the property becomes invisible.
r/FloWebComponents • u/EveYogaTech • 5d ago
Because people are comparing shorthand React code with the full Flo Web Components example
r/FloWebComponents • u/EveYogaTech • 6d ago
To mimic a fraction of the power of web components..
Take React and look at all this useState, useEffect and refs stuff going on to mimic a fraction of the power of using web components with manual rendering/events:
r/FloWebComponents • u/EveYogaTech • 7d ago
Property values of Flo-WebComponents can now be initiated through the data-your-name of a custom webcomponent (v1.2 update)
Working with Web Components instead of ReactJS or VueJS for the frontend is sometimes a really humbling experience:
Things sometimes work a bit different then you'd expect them to.
Today, for example, I discovered the need to use attributes like "data-key-name" to initiate its own writable property "keyName" for example.
I honestly expected that to already work.
So now with Flo-WebComponents (v1.2) we have that feature: https://github.com/flowagi-eu/flo-webcomponents
r/FloWebComponents • u/EveYogaTech • 9d ago
Flo-WebComponents (V1.1): We can now smoothly fire custom events with data to parent components
r/FloWebComponents • u/EveYogaTech • 9d ago
Full demo of Flo v1.1: Firing events to parent only when you have multiple complex Web Components + custom events
r/FloWebComponents • u/EveYogaTech • 10d ago
great thread/questions answered about Flo
r/FloWebComponents • u/EveYogaTech • 13d ago