ArezPersist triggers the processing of a type when @PersistType is present on a type but it also checks to see whether the component has the @ArezComponent annotation and only generates the sidecar when that is present. (ArezPersist allows @Persist annotations on types annotated with @ActAsComponent but will generate errors in other circumstances but should not generate sidecars for @ActAsComponent types).
This does not work when another framework (like react4j) is responsible for creating the @ArezComponent type. We should figure out a way to have arbitrary frameworks allow and copy down annotations from other frameworks. i.e. Copy @PersistType on @ReactComponent annotated types to generated @ArezComponent and allow @Persist annotation to be present on @ReactComponent annotated types.
ArezPersist triggers the processing of a type when
@PersistType
is present on a type but it also checks to see whether the component has the@ArezComponent
annotation and only generates the sidecar when that is present. (ArezPersist allows@Persist
annotations on types annotated with@ActAsComponent
but will generate errors in other circumstances but should not generate sidecars for@ActAsComponent
types).This does not work when another framework (like react4j) is responsible for creating the
@ArezComponent
type. We should figure out a way to have arbitrary frameworks allow and copy down annotations from other frameworks. i.e. Copy@PersistType
on@ReactComponent
annotated types to generated@ArezComponent
and allow@Persist
annotation to be present on@ReactComponent
annotated types.