SolidJS
Zero has built-in support for Solid. Here’s what basic usage looks like:
import {useQuery} from '@rocicorp/zero/solid';
const issues = useQuery(() => {
let issueQuery = z.query.issue
.related('creator')
.related('labels')
.limit(100);
const userID = selectedUserID();
if (userID) {
issueQuery = issueQuery.where('creatorID', '=', userID);
}
return issueQuery;
});
Complete quickstart here: