Skip to content

Commit 79b65db

Browse files
committed
chore: todo update
1 parent 71449e2 commit 79b65db

1 file changed

Lines changed: 17 additions & 41 deletions

File tree

todo.txt

Lines changed: 17 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,29 @@
1+
## Nanoviews
2+
13
- for loop array or empty check for else
24
- rework return slot$ to look like element/component? fn.prop is faster than {f,p}
35
- util to transform static props to signal props?
46
- rename decide? export as public - as Dynamic in solidjs
57
- typed effectattrs <T>
68
- additional arg for record in for$? as$
9+
- controls addEventListener to events system
10+
- static index for untracked loop?
711

812
for$($items)(
913
as$(record, ($item) => li()($item.$name))
1014
)
1115

16+
## Kida/Agera
17+
1218
- serialize - start all marked stores?
19+
- injectable class
20+
1321
- bundle types?
14-
- static index for untracked loop?
15-
- controls addEventListener to events system
16-
- lazy scope to start and stop methods? - ??? wtf???
22+
- lazy scope to start and stop methods? for example for resort in loop
1723
- later: resort effects
24+
- store injection effectScope to stop effects after context stop? - UPD: wtf is this? i dont remember what it mean. Wrap serialize in effectScope? Or wrap inject ? bad practice, maybe just for safety into serialize
1825

19-
do not export all through root index? split entrypoints by groups
20-
21-
import {
22-
div,
23-
button
24-
} from 'nanoviews/elements'
25-
import {
26-
classList$,
27-
focus$
28-
} from 'nanoviews/attributes'
29-
import {
30-
signal
31-
} from 'nanoviews/store'
32-
import {
33-
if$,
34-
for$
35-
} from 'nanoviews/logic'
36-
37-
vs
38-
39-
import {
40-
div,
41-
button,
42-
classList$,
43-
focus$,
44-
signal,
45-
if$,
46-
for$
47-
} from 'nanoviews'
48-
49-
there are many exports, so it can look like a mess, may be we can push devs to write structured code by splitting exports by entrypoints.
26+
## Perf
5027

5128
- !== undefined is faster
5229
- prop: undefined is faster
@@ -57,23 +34,18 @@ there are many exports, so it can look like a mess, may be we can push devs to w
5734
- Reflect.get is slow
5835
- arr.length = 0 is slower than arr = []
5936

60-
- store injection effectScope to stop effects after context stop? - UPD: wtf is this? i dont remember what it mean. Wrap serialize in effectScope? Or wrap inject ? bad practice, maybe just for safety into serialize
37+
## Long distance plans
6138

6239
- html + head components
6340
- universal dom
6441
- ssr
6542
- hydration
66-
67-
- events modifiers?
6843
- svg ?
69-
7044
- error boundaries
71-
7245
- hmr
73-
7446
- COMPILER to compete with svelte and solid
7547

76-
SSR
48+
### SSR
7749

7850
- setAttribute
7951
- removeAttribute
@@ -91,6 +63,9 @@ SSR
9163
- portals
9264
- innerHTML
9365

66+
## Drafts
67+
68+
```
9469
handler = {
9570
k: undefined,
9671
get(target, key) {
@@ -124,3 +99,4 @@ obj = props$({
12499
c: true,
125100
d: null
126101
})
102+
```

0 commit comments

Comments
 (0)