Skip to content

Commit 68f8c1b

Browse files
committed
docs: update todo.txt
1 parent 8016815 commit 68f8c1b

File tree

1 file changed

+44
-21
lines changed

1 file changed

+44
-21
lines changed

todo.txt

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,53 @@
1-
- attr lazy prop
2-
- signal getter
1+
- for loop array or empty check for else
2+
- rework return slot$ to look like element/component? fn.prop is faster than {f,p}
33
- util to transform static props to signal props?
44
- rename decide? export as public - as Dynamic in solidjs
55
- typed effectattrs <T>
66
- additional arg for record in for$? as$
7+
8+
for$($items)(
9+
as$(record, ($item) => li()($item.$name))
10+
)
11+
712
- serialize - start all marked stores?
8-
- bundle types
13+
- bundle types?
914
- static index for untracked loop?
1015
- controls addEventListener to events system
11-
- lazy scope to start and stop methods?
16+
- lazy scope to start and stop methods? - ??? wtf???
1217
- later: resort effects
1318

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.
50+
1451
- !== undefined is faster
1552
- prop: undefined is faster
1653
- for let i faster than array methods
@@ -20,35 +57,21 @@
2057
- Reflect.get is slow
2158
- arr.length = 0 is slower than arr = []
2259

23-
- store injection effectScope to stop effects after context stop?
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
2461

2562
- html + head components
2663
- universal dom
2764
- ssr
2865
- hydration
2966

30-
- enhance events / modifiers?
67+
- events modifiers?
3168
- svg ?
32-
- transitions ?
3369

3470
- error boundaries
3571

3672
- hmr
37-
- more informative errors
38-
39-
All publics
40-
Size limit: 1.8 kB
41-
Size: 1.78 kB with all dependencies, minified and brotlied
42-
43-
Signal
44-
Package size limit has exceeded by 249 B
45-
Size limit: 1.22 kB
46-
Size: 1.47 kB with all dependencies, minified and brotlied
4773

48-
Popular set
49-
Package size limit has exceeded by 235 B
50-
Size limit: 1.33 kB
51-
Size: 1.57 kB with all dependencies, minified and brotlied
74+
- COMPILER to compete with svelte and solid
5275

5376
SSR
5477

0 commit comments

Comments
 (0)