hyperstackjs / hyperstack

The pragmatic app framework for builders 🐶
https://hyperstackjs.io
MIT License
385 stars 12 forks source link

Fix initializers loading #4

Closed ChengaDev closed 1 year ago

ChengaDev commented 1 year ago

Initializers are not loaded correctly since the initializers are assigned to the app context like that:

  context.update(setters.initializers, {
    initializers: { initializers: inits, props },
  })

and being loaded like that:

  const store = context.store()
  const initializers = store.initializers

had to be loaded like that:

  const store = context.store()
  const initializers = store.initializers?.initializers