Replies: 4 comments
-
How would you show atoms inactivity for example when atom is disconnected? Will it remove node from the graph? Don't you think that having something like composed-nodes is good? Like if we have atom with name Something like composite state here: |
Beta Was this translation helpful? Give feedback.
-
Collapsing a group of atoms and actions by it names is a good thing, but I don't think we should have some "live overview" of current connected atoms. First of all we need visual log of transaction, which is persisted. |
Beta Was this translation helpful? Give feedback.
-
I would say that in application with 50 atoms that visualisation will be unusable because of visual overload. |
Beta Was this translation helpful? Give feedback.
-
Yes, for that reason there is no sense to show all atoms at one time, only scrollable log of small updates |
Beta Was this translation helpful? Give feedback.
-
Hi there! We finally found a way to build simple and powerful dev tools to increase DX without huge extra complexity. The idea is to print one-line logs (JavaScript is not a parallel language and all updates sequential) and draw lines to show the cause.
Prototype: https://codesandbox.io/s/reatomasync-graph-test-96hthv
Sources: https://github.com/artalar/reatom/blob/v3/packages/logger/src/graphView.ts
Tasks
connectLogger
function should accept an optionaldevtools?: boolean
option, which isfalse
by default.position: fixed; bottom: 1rem; left: 1rem
(or something similar).@observablehq/inspector
) with the correspondingAtomPatch
displayed when hovering over the node. Additionally, all related lines should be highlighted.!name.includes('abort')
. Here,name
refers toAtomProto['name']
and is available in the script scope.Beta Was this translation helpful? Give feedback.
All reactions