-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fp/core-logging
* main: (41 commits) allow useQuery to filter or sort a collection by using a callback (#5513) Fix `realm.create` types and 'requiredProperties' on Realm.Object constructor (#5697) Fix return type of `App.allUsers` (#5708) Removed renamed file Remove console.log Fix README instructions and bump version Bump template versions Update Templates (#5702) Moved "submodules" wireit task to "postinstall" Set up typedoc for realm-react, realm-web (#5709) Prepare for vNext (#5711) Prepare for 12.0.0-alpha.2 (#5707) Build iOS prebuilds in release by default (#5710) Use the event.sender as assignee when preparing release Updated prepare release workflow to print PR url in summary Fixing lint error fix the template app links (#5701) Expose `Sync` as named export (#5705) Enable all tests after bad rebase (#5595) Clear test state flag (#5689) ... # Conflicts: # packages/realm/src/Realm.ts
- Loading branch information
Showing
359 changed files
with
3,324 additions
and
36,353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,15 @@ jobs: | |
run: npm version ${{ steps.update-changelog.outputs.new-version }} --workspace realm | ||
|
||
- name: Create Release PR | ||
uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad #! 3.10.1 | ||
uses: peter-evans/[email protected] | ||
id: create-pr | ||
with: | ||
branch: release/${{ steps.update-changelog.outputs.new-version }} | ||
title: Prepare for ${{ steps.update-changelog.outputs.new-version }} | ||
body: An automated PR for next release. | ||
commit-message: "[${{ steps.update-changelog.outputs.new-version }}] Bump version" | ||
token: ${{ secrets.REALM_CI_PAT }} | ||
assignees: ${{ github.event.sender }} | ||
|
||
- name: Update summary | ||
run: echo "Created [PR for v${{ steps.update-changelog.outputs.new-version }}](${{ steps.create-pr.outputs.pull-request-url }})" >> $GITHUB_STEP_SUMMARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
import React, {useMemo} from 'react'; | ||
import React from 'react'; | ||
|
||
import {Task} from './models/Task'; | ||
import {TaskManager} from './components/TaskManager'; | ||
|
||
import {useQuery} from '@realm/react'; | ||
|
||
export const AppNonSync = () => { | ||
const result = useQuery(Task); | ||
const [showDone, setShowDone] = React.useState(false); | ||
const tasks = useQuery( | ||
Task, | ||
collection => | ||
showDone | ||
? collection.sorted('createdAt') | ||
: collection.filtered('isComplete == false').sorted('createdAt'), | ||
[showDone], | ||
); | ||
|
||
const tasks = useMemo(() => result.sorted('createdAt'), [result]); | ||
|
||
return <TaskManager tasks={tasks} />; | ||
return ( | ||
<TaskManager tasks={tasks} setShowDone={setShowDone} showDone={showDone} /> | ||
); | ||
}; |
Oops, something went wrong.