David Schkalee
David Schkalee
You would rather control this in your View. Something like: ``` javascript bindings: { '#uRepeateverybyweek': { observe: 'uRepeateverybyweek', onGet: function(val) { var displayMode = val ? 'inline-block' : 'none'; this.$('#uRepeateverybyweek').css('display',...
Here is a little idea I had for using tsdi with hooks ```ts const tsdi = new TSDI(); tsdi.enableComponentScanner(); function useTSDI(Store: { new (): T } | string, scope?: string):...
Great proposal! I actually have some concerns in practice, entering the scope during the effect. that way you cannot write synchronous code when depending on a scope: ```js const store...
```ts export function useTSDI(Dependency: { new (): T }): T { return useMemo( () => { @external class Injector { @inject tsdi!: TSDI; public get(): T { return this.tsdi.get(Dependency); }...
> Besides the working example above, I've noticed that mobx `observer` is not compatible with hooks since it creates a HOC as class component instead of a function component. Therefore...
To everyone using yarn2 with node_modules currently facing this issue, heres a quick patch to get by: Please be aware that the path added must be relative to your existing...
fyi for everyone who's coming from [typescript-plugin-styled-components](https://github.com/Igorbek/typescript-plugin-styled-components) and wants to reproduce its behaviour, this config with `@swc/plugin-styled-components` worked for me: ```js jsc: { experimental: { plugins: [ [ '@swc/plugin-styled-components', {...
FYI: The issue still exists. What is does right now is creating a union-type of `string | MyCustomType`. This is due to a connection to the native `HTMLInputElement`, where we...
I just updated to mui v6 and got problems with one of your changes: https://github.com/mui/material-ui/commit/7308dd06ee215d0c4bb5f3e4aa31767d06401684#diff-8d1ff500648fb816e094c97e276c5ae924a36d6ab51d2f13afb5e3974e00c490R28 I dont know the details about the code, but I was wondering why is `attachTheme`...
> Performance optimization, the prop object is being recreated at multiple times in the stack (2x by React, 1x by Emotion, previously about 4-6x by MUI). Do you have a...