oliverbutler / graph-notes

A secure note-taking platform 🚀
MIT License
4 stars 0 forks source link

Normalize redux data and introduce backlinks. #6

Open oliverbutler opened 3 years ago

oliverbutler commented 3 years ago

Look into https://github.com/paularmstrong/normalizr

Currently

Redux stores pages as an array of blocks with no children To query a pages children we currently just filter all pages, this has some benefits

Proposed

Work out how best to store, in a normalized way:

Ideally - we want no duplication of data.

oliverbutler commented 3 years ago

Using a normalized tree structure in redux would also enable ordering of children, a current flaw with the existing implementation.

This is a high priority fix.

oliverbutler commented 3 years ago