This file contains hidden or 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
| import { DataStore, Hub, Predicates, syncExpression } from "aws-amplify"; | |
| import React, { useCallback, useEffect, useLayoutEffect } from "react"; | |
| import { | |
| Address, | |
| Customer, | |
| } from "models"; | |
| export type DataStoreZone = "DEFAULT" | "ELEVATED"; |
This file contains hidden or 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
| function App() { | |
| const { data, isLoading, error, refetch } = useQuery( | |
| async () => await DataStore.query(Model), | |
| ); | |
| const { handler, isLoading, isError, isSuccess } = useMutation<Model>(async (variables) => { | |
| await DataStore.save(new Sermon(template)); | |
| }); | |
| useSubscription(() => DataStore.observe(Model), { |
This file contains hidden or 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
| import { | |
| DataStore, | |
| PersistentModel, | |
| PersistentModelConstructor, | |
| ProducerModelPredicate, | |
| SortPredicate, | |
| ProducerPaginationInput, | |
| } from "@aws-amplify/datastore"; | |
| import { useAppState } from "providers/AppStateProvider"; | |
| import { useCallback, useEffect, useRef, useState } from "react"; |
This file contains hidden or 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
| // https://github.com/tompipe/Umbraco-CMS/blob/bdbc37810655c0a4ec860d211ab3a8bf91863ead/src/umbraco.controls/Property.cs | |
| // Replaces from line 46 onwards | |
| writer.WriteLine("<div class=\"umb-el-wrap " + CssClass + "\">"); | |
| if (_text != string.Empty) | |
| { | |
| if (_control == null) | |
| { |
This file contains hidden or 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
| <form> | |
| <legend>Form #1</legend> | |
| <fieldset> | |
| <p> | |
| <label for="myInput">Tap in the box >></label> |